From 04e9c3cd300dc866dc0e0cad1568416cd8519512 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Mon, 5 Jun 2023 15:38:05 -0500 Subject: [PATCH] avoid page breaks in code blocks --- packages/starlight/components/MarkdownContent.astro | 1 + 1 file changed, 1 insertion(+) 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; } }