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 lists #17

Open
andywhite37 opened this issue Mar 1, 2015 · 2 comments
Open

Nested lists #17

andywhite37 opened this issue Mar 1, 2015 · 2 comments

Comments

@andywhite37
Copy link

Hello!
I was trying out a few things with the markdown parser, and noticed that it doesn't seem to handle nested lists. I don't think nested lists are actually in the markdown "spec," but it seems that implementations often support them. Thanks for your work on this project!

var myMarkdown = `
- item 1
- item 2
    - item 3
    - item 4
- item 5
`;

Results in this markup:

<ul>
<li>item 1</li>
<li>item 2
- item 3
- item 4
</li>
<li>item 5</li>
<li>item 6</li>
</ul>
@boozook
Copy link

boozook commented Nov 19, 2015

@uvtc
Copy link
Contributor

uvtc commented Aug 16, 2019

Was this fixed? Because, following the 4-space-rule (all actual content in lists starts at indents of multiples of 4 places in), this works fine for me:

var content = "hi

  * foo
  
      * aaa
      
      * bbb

          * xxx. More here about x.
            And yet still more,
            with multiple lines.
          * yyy
          * zzz

      * ccc
  
  * bar

done
";

This is still using the v1.0.0 release on haxelib.

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

No branches or pull requests

3 participants