blackfriday
blackfriday copied to clipboard
List rendering
I'm getting odd behavior in lists:
- when adding an additional paragraph to a bulleted list item
- when adding a nested list to a bulleted list
Adding Paragraph to a list item:
* This is a list item with two paragraphs.
This is the second paragraph in the list item.
* Another item in the same list.
Output:
<ul>
<li><p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item.</p></li>
<li><p>Another item in the same list.</p></li>
</ul>

I think the proper output is:
<ul>
<li>This is a list item with two paragraphs.
<p>This is the second paragraph in the list item.</p></li>
<li>Another item in the same list.</li>
</ul>
Nested List Items:
- text goes here
- subitem text
- subitem text
- text goes here
Output:
<ul>
<li><p>text goes here</p>
<ul>
<li>subitem text</li>
<li>subitem text</li>
</ul></li>
<li><p>text goes here</p></li>
</ul>

Expected output:
<ul>
<li>text goes here
<ul>
<li>subitem text</li>
<li>subitem text</li>
</ul></li>
<li>text goes here</li>
</ul>