Skip to content

fix: collapse oversized gap in loose markdown lists#155

Merged
unidoc-ahall merged 1 commit into
masterfrom
fix/prose-list-spacing
Jul 10, 2026
Merged

fix: collapse oversized gap in loose markdown lists#155
unidoc-ahall merged 1 commit into
masterfrom
fix/prose-list-spacing

Conversation

@unidoc-ahall

Copy link
Copy Markdown
Contributor

Closes #154.

Loose markdown lists (a blank line between items) rendered with a big gap between bullets — marked wraps each item in a <p>, which stacked .doc-prose p's 1rem margin on top of the list-item spacing (~22px between bullets). Live example: TASK-2's SW-CORE list.

One rule in src/style.css, everywhere doc-prose is used:

.doc-prose li > p { margin: 0; }

Loose lists now match the tidy ~6px rhythm of tight lists. just build-web green.

Loose lists (blank line between items) render as <li><p>…</p></li>; the inner <p>
stacked a 1rem paragraph margin on top of the list-item spacing, so bullets sat
~22px apart across every doc-prose surface. One rule — .doc-prose li > p { margin: 0 }
— collapses loose lists to the same ~6px rhythm as tight lists.

Closes #154
@unidoc-ahall unidoc-ahall added this to the 0.7.1 milestone Jul 10, 2026
@unidoc-ahall unidoc-ahall requested a review from unidoc-alip July 10, 2026 11:09

@unidoc-alip unidoc-alip left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@unidoc-ahall unidoc-ahall merged commit f27389d into master Jul 10, 2026
2 checks passed
@unidoc-ahall unidoc-ahall deleted the fix/prose-list-spacing branch July 10, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown lists render with oversized gaps between bullets (loose lists)

2 participants