Environment
--
Comark Version
v0.3.1
Reproduction
https://github.com/annaghi/comark-repro-token-processor-list-item-multi-paragraph
Description
When a list item contains two paragraphs, token-processor.ts unwraps both, stripping the block structure. The result is inline elements where block elements are expected, producing incorrect HTML output.
Additional context
--
Logs
[
[
'h1',
{ id: 'two-paragraph-list-items-are-rendered-as-inline-content' },
'Two-paragraph list items are rendered as inline content'
],
[ 'ul', {}, [ 'li', {}, 'para1', 'para2' ] ]
]
Environment
--
Comark Version
v0.3.1
Reproduction
https://github.com/annaghi/comark-repro-token-processor-list-item-multi-paragraph
Description
When a list item contains two paragraphs,
token-processor.tsunwraps both, stripping the block structure. The result is inline elements where block elements are expected, producing incorrect HTML output.Additional context
--
Logs
[ [ 'h1', { id: 'two-paragraph-list-items-are-rendered-as-inline-content' }, 'Two-paragraph list items are rendered as inline content' ], [ 'ul', {}, [ 'li', {}, 'para1', 'para2' ] ] ]