flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

Markdown to HTML converter missing list end for two consecutive lists

Open praneethrreddy opened this issue 5 years ago • 2 comments

I am facing issue similar to https://github.com/vsch/flexmark-java/issues/138 while trying to convert md file to HTML. Ordered list is being rendered into first unordered list. Added double blank line to end the list as suggested here, #132, but no luck. My md file data

Body

 * Bullet
    * Bullet
       * Bullet
 
 
1. Number
    1. Number
    2. Number  

Output:

<p>Body</p>
<ul>
<li>
<p>Bullet</p>
<ul>
<li>Bullet
<ul>
<li>Bullet</li>
</ul>
</li>
</ul>
</li>
<li>
<p>Number</p>
<ol>
<li>Number</li>
<li>Number</li>
</ol>
</li>
</ul>

Without adding a HTML comment in md file, is there any parsing option that I should try to solve this. Tried different List parsing options from here, https://github.com/vsch/flexmark-java/wiki/Extensions#list-parsing-options. But no luck. Could you please give some advice.

praneethrreddy avatar Nov 27 '20 13:11 praneethrreddy

@vsch Could you please help on this

praneethrreddy avatar Nov 30 '20 04:11 praneethrreddy

@praneethrreddy, you may need to provide more details, including source code.

Here's a screenshot from my application, which uses flexmark-java:

md-html

Please provide the exact input Markdown, including comments, the exact HTML output you'd expect, and the actual HTML output you're seeing. If possible, provide a minimal example that shows the issue.

ghost avatar Jan 04 '21 04:01 ghost