-
-
Notifications
You must be signed in to change notification settings - Fork 704
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 ordered lists cause incorrectly affect the parent ordered list's numbering #1743
Comments
Hi!
You can use this instead: <ol type="a">
<li>(a.) Item 1</li>
<li>(b.) Item 2
<ol type="1">
<li>(1.) Item 2.1</li>
<li>(2.) Item 2.2</li>
<li>(3.) Item 2.3</li>
</ol>
</li>
<li>(c.) Item 3</li>
<li>(d.) Item 4</li>
</ol> |
Huh, I swore that is what I tried first. I suppose it was before I found out about Is there a reason that presentational hints aren't enabled by default? Reading the documentation left me with more questions than what it actually answered. Are there downsides to enabling it? |
😀️
The main reason is that it’s slow. As most of these features are more or less deprecated in HTML, users generally prefer to use the corresponding CSS properties. For lists, for example, a lot of things can be handled using the CSS Lists and Counters module’s properties. |
That makes sense. Unfortunately, our use case is converting markdown files to PDFs with Pandoc and WeasyPrint. We had a specification in our contract that required a single ordered list to contain letters with a nested ordered list inside so using CSS to target such a specific thing (that was generic to all of our documentation) didn't feel right. I expected that Thank you for the assistance and information! |
With the following HTML, WeasyPrint doesn't generate the expected output
Browser output:
WeasyPrint output:
This also happens to showcase that nested ordered lists aren't handled correctly either. Changing
type="a"
totype="1"
(default), creates the same output.The text was updated successfully, but these errors were encountered: