Skip to content

fix: indent loose list continuation content under parent bullet#705

Merged
backnotprop merged 3 commits into
mainfrom
fix/bullet-point-rendering
May 11, 2026
Merged

fix: indent loose list continuation content under parent bullet#705
backnotprop merged 3 commits into
mainfrom
fix/bullet-point-rendering

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

@backnotprop backnotprop commented May 11, 2026

Summary

  • The markdown parser now merges blank-line-separated indented content into the preceding list item as a "loose continuation," matching standard markdown behavior
  • The renderer splits multi-paragraph list items on \n\n and renders each segment as a separate <p> under the bullet, keeping content visually indented
  • Same fix applied to the plan diff view (both unchanged and modified block renderers)
  • Tight continuation (no blank line) preserves the original \s+ indent check; only loose continuation (after blank line) requires \s{2,}

Closes #704

Test plan

  • Run ./tests/manual/local/test-loose-list.sh and walk through all 16 sections of the fixture — each section describes expected rendering and what a regression looks like
  • Run bun test packages/ui/utils/parser.test.ts — all 103 tests pass
  • Test plan diff view with a plan containing loose list items (deny, resubmit with changes to a loose item body)

The markdown parser now merges blank-line-separated indented content
into the preceding list item (loose continuation), matching standard
markdown behavior. The renderer splits multi-paragraph list items on
double newlines and renders each as a separate <p> under the bullet.

Closes #704
The previous commit tightened the indent regex from \s+ to \s{2,} for
both tight and loose cases, breaking single-space and tab tight
continuations. Now tight uses \s+ (original) and only loose requires
\s{2,}.
@backnotprop backnotprop merged commit fcf2ba4 into main May 11, 2026
10 checks passed
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 rendering improvements: bullet point content isn't indented correctly

1 participant