Skip to content

Commit 104e853

Browse files
committed
Avoid breaks inside <pre> and <figure>
1 parent cd76d01 commit 104e853

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/starlight/style/print.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@
105105
overflow-x: hidden !important;
106106
white-space: pre-wrap !important;
107107
}
108-
.sl-markdown-content .expressive-code {
108+
.sl-markdown-content .expressive-code,
109+
.sl-markdown-content figure,
110+
.sl-markdown-content pre {
109111
break-inside: avoid;
110112
}
111113
.expressive-code .frame.is-terminal .header::before {

0 commit comments

Comments
 (0)