From 91e1dd731a06657890a68b2d474199455df2756f Mon Sep 17 00:00:00 2001 From: HiDeoo Date: Fri, 1 Nov 2024 13:28:54 +0100 Subject: Fix Firefox Markdown content rendering issue (#2547) Co-authored-by: Chris Swithinbank --- .changeset/lazy-sheep-cheer.md | 5 +++++ packages/starlight/style/markdown.css | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/lazy-sheep-cheer.md diff --git a/.changeset/lazy-sheep-cheer.md b/.changeset/lazy-sheep-cheer.md new file mode 100644 index 00000000..63eb0306 --- /dev/null +++ b/.changeset/lazy-sheep-cheer.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Fixes a Firefox Markdown content rendering issue for text sentences separated by a line break. diff --git a/packages/starlight/style/markdown.css b/packages/starlight/style/markdown.css index 596ae612..476039c0 100644 --- a/packages/starlight/style/markdown.css +++ b/packages/starlight/style/markdown.css @@ -1,6 +1,6 @@ .sl-markdown-content - :not(a, strong, em, del, span, input, code) - + :not(a, strong, em, del, span, input, code, :where(.not-content *)) { + :not(a, strong, em, del, span, input, code, br) + + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) { margin-top: 1rem; } -- cgit