Skip to content

Keep paragraph tags paired in multi-block Markdown list items - #157

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
RowletCC:fix/list-paragraph
Sep 21, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
RowletCC:fix/list-paragraph

Conversation

@RowletCC

Copy link
Copy Markdown
Contributor

A list item containing a paragraph, a code block (or quote/nested list), and another paragraph produces unmatched paragraph tags. For example, - Introduction followed by an indented code block and Conclusion currently renders the item as Introduction</p>...<p>Conclusion: the outer-wrapper regex removes tags belonging to two different paragraphs.

Only unwrap a rendered list body when it consists of one paragraph. Keep the complete block structure for multi-block items, while preserving compact single-line and plain continuation items.

Validation: the unchanged upstream fails three new regressions and passes two controls. All five new tests pass after the fix, along with the parser-progress regression and six existing list/fence checks (12 total). TypeScript build/no-emit checks and Prettier checks pass. Tests cover intervening code, a blockquote, a nested list, ordinary continuation text, and a final code block.

Submitted under the published $0.25 USD-equivalent reward per valid bug-fix PR, using the existing application and settlement conversation. Settlement remains native SOL on Solana mainnet, subject to acceptance and confirmation of the exact token amount. No reward is claimed as received.

@ralyodio
ralyodio merged commit bced3e5 into profullstack:master Sep 21, 2026
4 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.

2 participants