Skip to content

Commit

Permalink
Avoid breaks inside <pre> and <figure>
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 10, 2025
1 parent cd76d01 commit 104e853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/starlight/style/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
overflow-x: hidden !important;
white-space: pre-wrap !important;
}
.sl-markdown-content .expressive-code {
.sl-markdown-content .expressive-code,
.sl-markdown-content figure,
.sl-markdown-content pre {
break-inside: avoid;
}
.expressive-code .frame.is-terminal .header::before {
Expand Down

0 comments on commit 104e853

Please sign in to comment.