Skip to content

Commit becc048

Browse files
committed
Revert "fix: preserve spacing for loose lists in Prose component (#1025)"
This reverts commit 67d6aae.
1 parent a2cdb82 commit becc048

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/prose/prose-example.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,12 @@ A second paragraph now. One that contains [a link to Doist.com](https://doist.co
1111
formatting examples, such as **bold text**, _italic text_, ~~strikethrough text~~ and \`monospace\`.
1212
These can also be combined, like [using _italics_, \`monospace\`, or _\`both\`_ within a link](https://en.wikipedia.org/wiki/Typography).
1313
14-
Now let’s continue with a tight list (no blank lines between items):
14+
Now let’s continue with a list:
1515
1616
- this one
1717
- that one
1818
- the other one
1919
20-
And a loose list (blank lines between items):
21-
22-
- first item
23-
24-
- second item
25-
26-
- third item
27-
2820
And a blockquote:
2921
3022
> Blockquotes are indented and have a border on the left. The text color is slightly dimmed.

src/prose/prose.module.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,6 @@
133133
margin-top: calc(0.5 * var(--reactist-prose-space-1));
134134
}
135135

136-
/* Loose lists (blank lines between items) produce <p> inside <li>. Give them paragraph-level
137-
spacing so the visual gap the user intended is preserved. */
138-
.prose li:has(> p) + li {
139-
margin-top: var(--reactist-prose-space-2);
140-
}
141-
142136
.prose ul ul,
143137
.prose ul ol,
144138
.prose ol ol,

0 commit comments

Comments
 (0)