Skip to content

List items parse unexpected #3631

Closed
Closed
@wulei950626

Description

@wulei950626

Marked version: 15.0.0

Describe the bug
when useing marked.parse
Given this input:

-This shouldn't be an h tag
   -

Results in this:

<h2>-This shouldn't be an h tag</h2>

and not the expected:

<ul>
  <li>
    <p>This shouldn't be an h tag</p>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>

you can try in https://spec.commonmark.org/dingus/
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions