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
Adding <p> in a list indicates the list is a loose list. This rule defined in CommonMark spec, but blackfriday is not compliant to the spec fully, so the output may right to it.
I suggest you use a markdown processor compliant to CommonMark spec, I wrote one here 😄
I'm getting odd behavior in lists:
Adding Paragraph to a list item:
Output:
I think the proper output is:
Nested List Items:
Output:
Expected output: