Commit 7234241
fix(MarkdownRenderer): trim first/last child margins (#1308)
The MarkdownHeading component applies mt="5" to all headings, creating
unwanted top spacing when a heading is the first element rendered inside
the MarkdownRenderer. Add globalStyle rules on the root to strip
margin-top from the first child and margin-bottom from the last child.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 43ce2d8 commit 7234241
File tree
2 files changed
+20
-1
lines changed- .changeset
- lib/components/MarkdownRenderer
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments