Skip to content

Commit

Permalink
Added Soft Wrapping for Long Lines (#60)
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Yousuf Fazal <[email protected]>
  • Loading branch information
myousuffazal authored Nov 1, 2023
1 parent ea9185a commit d9fec29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/code-renderer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d9fec29

Please sign in to comment.