Skip to content

Commit 7d60765

Browse files
committed
fix: preformatted text indents the first line strangely
1 parent edb34c9 commit 7d60765

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

web/styles/components/code-block.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,23 @@
5353
}
5454

5555
.hljs {
56-
overflow-x: auto;
56+
overflow: auto;
57+
display: block;
58+
width: auto;
5759
background: #2b2b2b;
5860
color: #f8f8f2;
5961
padding: 0.5em;
6062
font-size: 14px;
63+
word-wrap: normal;
6164
border-radius: 0.4rem;
6265
margin-top: 1rem;
6366
margin-bottom: 1rem;
6467
}
68+
pre > code {
69+
display: block;
70+
text-indent: 0;
71+
white-space: inherit;
72+
}
6573

6674
.hljs-emphasis {
6775
font-style: italic;

0 commit comments

Comments
 (0)