Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested lists - bug in numbering #176

Open
lofcz opened this issue Nov 13, 2024 · 1 comment
Open

Nested lists - bug in numbering #176

lofcz opened this issue Nov 13, 2024 · 1 comment

Comments

@lofcz
Copy link

lofcz commented Nov 13, 2024

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

@onizet
Copy link
Owner

onizet commented Nov 25, 2024

Hi I was looking at your issue and would like to suggest you to set 2 options:
converter.ContinueNumbering = false

and for the heading, I'm not sure what you would really expect (just the style applied or having numbered heading?) but you can try also with converter.SupportsHeadingNumbering = false (sorry this is not yet published to a proper nuget package, still working on this release).

Let me know if that sounds okay to you.

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

No branches or pull requests

2 participants