Closed johnphamvan closed 3 years ago
Nevermind. Posting the solution in hopes it helps someone in the future. The attribute for the block must appear after all the indented blocks and correctly align with the rest of the block.
Working example
1. First level[^1]
1. Indented ordered list
1. I hope third levels aren't common
2. In case they are though...
3. Can I go a 4th level of bullets?
1. 4th ok?
2. Another 4th
1. 5th level.
1. Also 5th.
1. How about 6th?
{ .parens-lower-roman }
1. Picking up the 5th level
{ .upper-alpha }
3. Third 4th level
4. Fourth 4th level
{ .parens-decimal }
{ .lower-roman }
2. The numbering should start over.
3. This should be the second level of bullets.
{ .parens-lower-alpha }
1. Still first level[^2]
{ .decimal }
Hello. I am try to represent deeply nested ordered lists with semantically correct
ol
which are especially important for accessibility. Unfortunately, I can see that Goldmark stops at the third level in list.go: https://github.com/yuin/goldmark/blob/75d8cce5b78c7e1d5d9c4ca32c1164f0a1e57b53/parser/list.go#L92I have checked the spec and tested with dingus. There does not seem to be a limit to indentations on lists, and the spec states that:
Thanks in advance. ~John
Update Seems that the it only breaks when there is also an attribute block that goes with the nested list. Adding an attribute seems to break the next level of indented list if it is the last item in the list.
Example:
This, however, works without the attribute after the 4th level.