Closed
Description
As discussed on the list, a stripped comment in a list makes it loose. Here is a minimal example.
- OS: macOS 11.5.2 20G95 arm64
- pandoc 2.14.2; Compiled with pandoc-types 1.22, texmath 0.12.3.1, skylighting 0.11
╭─reagle@hom ~/e/clear/data/2web/reagle.org/joseph/2016/min-eg
╰─➤ pandoc test-list-nested.md
<h1 id="nested-list-with-comment">Nested list with comment</h1>
<ul>
<li>this is top 1
<ul>
<li>this is sub 1.1</li>
<li>this is sub 1.2 <!-- - going to think about 1.3 for a bit --></li>
<li>this is sub 1.4</li>
</ul></li>
<li>this is top 2
<ul>
<li>this is sub 2.1</li>
<li>this is sub 2.2</li>
<li>this is sub 2.3</li>
<li>this is sub 2.4</li>
</ul></li>
</ul>
╭─reagle@hom ~/e/clear/data/2web/reagle.org/joseph/2016/min-eg
╰─➤ pandoc --strip-comments test-list-nested.md
<h1 id="nested-list-with-comment">Nested list with comment</h1>
<ul>
<li>this is top 1
<ul>
<li><p>this is sub 1.1</p></li>
<li><p>this is sub 1.2</p></li>
<li><p>this is sub 1.4</p></li>
</ul></li>
<li>this is top 2
<ul>
<li>this is sub 2.1</li>
<li>this is sub 2.2</li>
<li>this is sub 2.3</li>
<li>this is sub 2.4</li>
</ul></li>
</ul>