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 ordered lists do not support more than 2 levels of indentation #270

Closed
zipang opened this issue Jan 19, 2015 · 7 comments
Closed

Comments

@zipang
Copy link

zipang commented Jan 19, 2015

Try these nested lists in the parser :

  1. Type some Markdown text
  2. Insert some nested ordered list
    1. We should be 1.1.1 (level 3) here
    2. Why oh my?
  3. One level back (1.2) here
    1. We should be 1.2.1 (level 3) here
  4. Hit Parse
  5. See the flat lists that result

Apparently, github isn't using parsedown because the indentation it produces in this issue is correct...? :)

@erusev
Copy link
Owner

erusev commented Jan 19, 2015

It does support more levels, but it expects more indentation. It probably shouldn't. I'll see what I can do.

@erusev erusev added the bug label Jan 19, 2015
@zipang
Copy link
Author

zipang commented Jan 19, 2015

Yes ! That's what i noticed shortly after !
If i try to indent using 4 spaces, it produce the desired indentation !

@aidantwoods
Copy link
Collaborator

Could you give the original text from the comment within a code block (add ``` above and below the text) so we can see the original indentation?

@aidantwoods
Copy link
Collaborator

I'm going to close this one because I'm not really sure what the intended result is – if the problem was similar to #581 then this will be fixed in the next release. If there is still an issue feel free to reopen though :)

Our indentation rules for list should line up with CommonMark now.

@aidantwoods aidantwoods added this to the 1.8.0 milestone Mar 28, 2018
@JHubi1
Copy link

JHubi1 commented May 5, 2024

So, hi there. This issue seems old, but I believe it's the exact problem I have.
When I try to enter something like this:

- a
  - b
    - c
Which should lead to this
  • a
    • b
      • c

Even in the demo page (so not an issue on my side), this is returned:

<ul>
<li>a
<ul>
<li>b</li>
<li>c</li>
</ul></li>
</ul>

Which then displays it like this:

  • a
    • b
    • c

I'm not sure if there's a solution to that, but I couldn't find it. I'd be happy if someone could help me

@taufik-nurrohman
Copy link

Either wait for version 2.0.0 to be released or use my Markdown parser instead, which is not yet stable (unfortunately):

List Spec.

@JHubi1
Copy link

JHubi1 commented May 5, 2024

Thank you, updating to v2.0.0-beta-1 did the trick for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants