From d9fec29a6a2bbc895aec6c9ccacbce64beebc1b1 Mon Sep 17 00:00:00 2001 From: Muhammad Yousuf Fazal Date: Wed, 1 Nov 2023 20:15:14 +0500 Subject: [PATCH] Added Soft Wrapping for Long Lines (#60) Signed-off-by: Muhammad Yousuf Fazal --- resources/code-renderer.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/code-renderer.css b/resources/code-renderer.css index 8589661..5811e87 100644 --- a/resources/code-renderer.css +++ b/resources/code-renderer.css @@ -14,6 +14,10 @@ pre[class*="language-"] { background: #f8f9fa; } +code[class*="language-"], pre[class*="language-"] { + white-space: pre-wrap; +} + .external-content.line-numbers { /* Initial spacing before line numbers plugin runs */ padding-left: 3.8em; @@ -37,7 +41,7 @@ pre[class*="language-"] { .line-numbers-rows .hide-line, .line-numbers-rows .hide-line:before { display: block; - height: 0px; + height: 0px !important; font-size: 1px; background: #f0f0f0 !important; color: #f0f0f0 !important;