You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marked returns wrong html for this simple markdown:
* section one
* item one
* item two
This is the first section
* section two
* item one
* item two
This is the second section
The expected html for this should be:
<ul>
<li>
<p>section one</p>
<ul>
<li>item one</li>
<li>item two</li>
</ul>
<p>This is the first section</p>
</li>
<li>
<p>section two</p>
<ul>
<li>item one</li>
<li>item two</li>
</ul>
<p>This is the second section</p>
</li>
</ul>
But in reality what I get is:
<ul>
<li>
<p>section one</p>
<ul>
<li>item one</li>
<li>
<p>item two</p>
<p>This is the first section</p>
</li>
</ul>
</li>
<li>
<p>section two</p>
<ul>
<li>item one</li>
<li>
<p>item two</p>
<p>This is the second section</p>
</li>
</ul>
</li>
</ul>
The problem here is that the paragraphs below the nested lists are included inside the 2nd list item of the nested list, instead of being siblings of the nested lists.
I'v checked the result of this markdown in different online editors and they all return the correct html.
Marked returns wrong html for this simple markdown:
The expected html for this should be:
But in reality what I get is:
The problem here is that the paragraphs below the nested lists are included inside the 2nd list item of the nested list, instead of being siblings of the nested lists.
I'v checked the result of this markdown in different online editors and they all return the correct html.
Here's the relevant thread in stack overflow.
The text was updated successfully, but these errors were encountered: