-
Notifications
You must be signed in to change notification settings - Fork 11
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
Nesting in ordered list #19
Comments
Nested lists are tricky syntax, they need the child element markers to be indented in line with the start of the list item's content, i.e
which is the equivalent to the second, unordered list above. This is how markdown, commonmark at least, is meant to handle nested lists: see the below babelmark tests:
and the spec for list syntax: https://spec.commonmark.org/0.29/#lists. https://www.johnmacfarlane.net/beyond-markdown.html is a nice read about the list syntax shortcomings (among other things). |
Ok thanks! So it's a question of number of spaces? (4 in your example instead of 2?) The thing that confuses me is that there's the same number in both cases yet in the second one it picks up the "child" element. (I see that the common mark editor does exactly the same thing so feel free to close this issue and I can just refer people to it and tell them to use 4 spaces for indentation) |
It's not really to do with any particular set number of spaces, it's relative to the lines above. See for example:
Where the first list marker |
Ok this makes sense, thanks! |
Is this meant to be?
or must sub-levels be indicated differently for ordered lists?
The text was updated successfully, but these errors were encountered: