Skip to content

Conversation

@HyunggyuJang
Copy link

Fixes bullet points and numbered lists that immediately follow text without a blank line separator.

Changes

  • Added mdx-breakless-lists dependency to handle GitHub-flavored markdown style lists
  • Updated render_markdown_text() to use the mdx_breakless_lists extension
  • Added test to verify lists render correctly without blank lines
  • Updated snapshot for improved list formatting

Background

The Python markdown library requires a blank line before lists by default. However, Claude's responses often include lists immediately after text without blank lines. The mdx-breakless-lists extension is the canonical solution for this, allowing GitHub-flavored markdown style lists.

Testing

  • All 112 tests pass
  • New test verifies list rendering without blank lines
  • Snapshot updated to reflect improved formatting

Add mdx-breakless-lists extension to handle bullet points and numbered
lists that immediately follow text without a blank line separator. This
is a common pattern in Claude's responses.

- Add mdx-breakless-lists dependency to pyproject.toml
- Update render_markdown_text to use mdx_breakless_lists extension
- Add test for list rendering without blank lines
- Update snapshot for improved list formatting
@HyunggyuJang HyunggyuJang force-pushed the fix-markdown-list-formatting branch from 92b68d9 to e0ba1f2 Compare January 1, 2026 06:12
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.

1 participant