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 list items are not converted correctly #26

Closed
brianto opened this issue Nov 25, 2010 · 6 comments
Closed

Nested list items are not converted correctly #26

brianto opened this issue Nov 25, 2010 · 6 comments
Labels
Milestone

Comments

@brianto
Copy link

brianto commented Nov 25, 2010

Given the list:

 -  Root
     +  Node
     +  Node
 -  Root

the parser wraps a <p> tag around the two root nodes. However, there is no blank line in the list, so there should not be a paragraph tag on the word "Root".

Here is maruku's output:

<ul>
<li>
<p>Root</p>

<ul>
<li>Node</li>

<li>Node</li>
</ul>
</li>

<li>
<p>Root</p>
</li>
</ul>

...and here is rdiscount's output:

<ul>
<li>Root

<ul>
<li>Node</li>
<li>Node</li>
</ul>
</li>
<li>Root</li>
</ul>
@tysonmote
Copy link

Ran into the same issue with:

* test
    * test 2

@kitofr
Copy link

kitofr commented Apr 29, 2011

+1

3 similar comments
@sukima
Copy link

sukima commented Aug 31, 2011

+1

@xoner
Copy link

xoner commented Sep 6, 2011

+1

@ericanderson
Copy link

+1

bhollis added a commit that referenced this issue Feb 18, 2013
@bhollis
Copy link
Owner

bhollis commented Feb 18, 2013

I've added a pending test that covers this problem.

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

No branches or pull requests

7 participants