Skip to content

Nested lists #17

@andywhite37

Description

@andywhite37

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions