Skip to content

Commit

Permalink
fix: preformatted text indents the first line strangely
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Nov 10, 2023
1 parent edb34c9 commit 7d60765
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/styles/components/code-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,23 @@
}

.hljs {
overflow-x: auto;
overflow: auto;
display: block;
width: auto;
background: #2b2b2b;
color: #f8f8f2;
padding: 0.5em;
font-size: 14px;
word-wrap: normal;
border-radius: 0.4rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
pre > code {
display: block;
text-indent: 0;
white-space: inherit;
}

.hljs-emphasis {
font-style: italic;
Expand Down

0 comments on commit 7d60765

Please sign in to comment.