-
-
Notifications
You must be signed in to change notification settings - Fork 631
Closed
Description
This test input should be unchanged when rendered back to commonmark:
# abc
- foo
- bar
-
# def
xyzInstead, cmark -t commonmark test-case.md produces:
# abc
- foo
- bar
-
# def
xyzThis happens whether or not the bullet is followed by a space in the empty list item.
The problem is in rendering rather than parsing, because the HTML output is:
<h1>abc</h1>
<ul>
<li>foo</li>
<li>bar</li>
<li></li>
</ul>
<h1>def</h1>
<p>xyz</p>Also, empty list items are handled correctly when they occur in the middle of a list.
This is a problem for me because I'm trying to round-trip some markdown documents in order to make changes in a different part of the document, and the trip introduces these unrelated and undesirable changes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels