Skip to content

Commit

Permalink
fix: remove margin in markdown lists that contain inline code (#924)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <357379+delucis@users.noreply.github.com>
  • Loading branch information
kevinzunigacuellar and delucis committed Oct 18, 2023
1 parent 52e952c commit 39d6302
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-mirrors-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Remove extra margin from markdown lists that uses inline code
4 changes: 2 additions & 2 deletions packages/starlight/components/MarkdownContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type { Props } from '../props';
<style>
.content
:global(
:not(a, strong, em, del, span, input)
+ :not(a, strong, em, del, span, input, :where(.not-content *))
:not(a, strong, em, del, span, input, code)
+ :not(a, strong, em, del, span, input, code, :where(.not-content *))
) {
margin-top: 1.5rem;
}
Expand Down

0 comments on commit 39d6302

Please sign in to comment.