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
Inconsistent List Formatting With Linebreaks #551
Comments
I'm getting a similar issue. It looks like removing the Original Markdown Input - [List item one](#link-one)
- [List item two](#link-two)
- [List item three](#link-three)
- [List item four](#link-four)
Broken HTML Output <ul>
<li>
<a href="#link-one">
<p>List item one</p>
</a>
</li>
<li>
<a href="#link-two">
<p>List item two</p>
</a>
</li>
<li>
<a href="#link-three">
<p>List item three</p>
</a>
</li>
<li>
<a href="#link-four">
List item four <--- Missing <p> tags
</a>
</li>
</ul> Modified Markdown Input - [List item one](#link-one)
- [List item two](#link-two)
- [List item three](#link-three)
- [List item four](#link-four) Working HTML Output <ul>
<li>
<a href="#link-one">
List item one
</a>
</li>
<li>
<a href="#link-two">
List item two
</a>
</li>
<li>
<a href="#link-three">
List item three
</a>
</li>
<li>
<a href="#link-four">
List item four
</a>
</li>
</ul> EditHere's a workaround if you really, really need your formatting to be perfect: - [List item one](#link-one)
- [List item two](#link-two)
- [List item three](#link-three)
- [<p>List item four</p>](#link-four) <--- Hardcoded <p> tags
|
I just added this as a test-case in my PR #475 and it looks to be resolved there. |
I'm getting inconsistent list formatting on the last list item of both ordered and unordered lists when there is are line-breaks in the list item body text.
For example the following markdown:
The expected output should be:
But the parser strips the
<p>
tags on the last item and outputs:The text was updated successfully, but these errors were encountered: