Skip to content

Commit 83afd09

Browse files
committed
style: enable code block wrapping in custom CSS
1 parent f94ff7e commit 83afd09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/css/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,10 @@
8989
vertical-align: middle;
9090
line-height: 1;
9191
}
92+
93+
/* Ensure code blocks wrap instead of scrolling */
94+
pre {
95+
white-space: pre-wrap !important; /* Allows wrapping */
96+
word-wrap: break-word !important; /* Breaks long words */
97+
overflow-x: auto; /* Enables horizontal scrolling if necessary */
98+
}

0 commit comments

Comments
 (0)