diff options
author | HiDeoo | 2024-11-01 13:28:54 +0100 |
---|---|---|
committer | GitHub | 2024-11-01 13:28:54 +0100 |
commit | 91e1dd731a06657890a68b2d474199455df2756f (patch) | |
tree | a11bed8822be94bf511716c5ea0f7eac15602e82 | |
parent | c82c450824427d5c1d6f5bb305f426a8c729fd7d (diff) | |
download | IT.starlight-91e1dd731a06657890a68b2d474199455df2756f.tar.gz IT.starlight-91e1dd731a06657890a68b2d474199455df2756f.tar.bz2 IT.starlight-91e1dd731a06657890a68b2d474199455df2756f.zip |
Fix Firefox Markdown content rendering issue (#2547)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r-- | .changeset/lazy-sheep-cheer.md | 5 | ||||
-rw-r--r-- | packages/starlight/style/markdown.css | 4 |
2 files changed, 7 insertions, 2 deletions
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; } |