Skip to content

Nested lists - bug in numbering #176

Closed
@lofcz

Description

@lofcz

Describe the bug
If there is a ol nested in a ul's li, the first marker is incorrectly swapped.

Repro

<ul>
  <li>
    <h3>Text1</h3>
    <ol>
      <li>Text2</li>
    </ol>
    <ul>
      <li>Text3</li>
    </ul>
    <ol start="2">
      <li>Text4</li>
    </ol>
    <ul>
      <li>Text5</li>
      <li>Text6</li>
    </ul>
    <ol start="3">
      <li>Text7</li>
    </ol>
  </li>
</ul>

Should be:
image

Currently renders as:
image

Also, are nested lists of level 3+ not supported? Converting the same document with Pandoc handles them correctly:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions