diff --git a/packages/starlight/components/MarkdownContent.astro b/packages/starlight/components/MarkdownContent.astro index cec9a7b91ce..08be6e464d8 100644 --- a/packages/starlight/components/MarkdownContent.astro +++ b/packages/starlight/components/MarkdownContent.astro @@ -115,6 +115,7 @@ .content :global(pre) { overflow-x: hidden !important; white-space: pre-wrap !important; + page-break-inside: avoid; } }