Skip to content

Commit a5a28ee

Browse files
authored
fix(content-section): preserve white space only in pre, not code (#858)
1 parent a4ef9c1 commit a5a28ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/content-section/server.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@
8282
pre,
8383
code {
8484
font-family: var(--font-family-code);
85-
white-space: pre-wrap;
8685
background-color: var(--color-background-secondary);
8786
}
8887

88+
pre {
89+
white-space: pre-wrap;
90+
}
91+
8992
pre:not(.code-example pre) {
9093
padding: 1rem;
9194

0 commit comments

Comments
 (0)