jgm/peg-markdown

Indentation level is wrong

link2xt opened this issue · 0 comments

This input

- foo

    - bar

      baz

results in this output:

<ul>
<li><p>foo</p>

<ul>
<li><p>bar</p></li>
</ul>

<p>baz</p></li>
</ul>

"baz" should be in the inner list, not outer.