Skip to content

bug: Two-paragraph list items are rendered as inline content #168

@annaghi

Description

@annaghi

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' ] ]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions