-
Notifications
You must be signed in to change notification settings - Fork 80
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
Non-standard behaviour for nested lists #55
Comments
This is the duplicate of bug #30. Maruku doesn't recognize lists which are indented by 2 or 3 spaces relative to the "current" indentation. |
No, it is not! The current behaviour is: Maruku recognizes a new nesting level only for indentations of 2 or 3 spaces relative to the current indentation. However, the widely agreed upon behaviour seems to be that 4 spaces of indentation do trigger a new nesting level. Pandoc even requires at least 4 spaces, other interpreters also allow 3 (Markdown.pl) or even only 2 spaces (kramdown). |
A nomenclatural problem. When we are processing a list
Bug #30 is precisely the reason why indented lists, with indentation (relative to the current indentation!) of 2 or 3 spaces are not recognized as such. |
Of course...this makes perfect sense now. |
Thanks @distler, I'll close this as a dup. |
Could you leave an example here of how to create a nested list? The example (case 2) above works only if the first list item is the only one with a nested list. This example doesn't work:
With maruku 0.6.0, the above markdown produces the following markup: <ul>
<li>
<p>one</p>
<ul>
<li>a</li>
<li>b</li>
</ul>
</li>
<li>
<p>two * a * 1 * 2</p>
</li>
</ul> |
I converted the following markdown:
Expected(?) output:
I get a list with two nesting levels for cases 2 and 3,
where the list markers are indented by 2 or by 3 spaces from
level to level.
In the last case, strange things happen and the result is:
I also converted using kramdown, pandoc, and the "original" Markdown.pl.
Though the behaviour differs widely for the cases 1 to 3 (!), they
all agree on the last one (with an indentation of 4 spaces) and
ouput a list with two nesting levels.
The text was updated successfully, but these errors were encountered: