DEV Community

Discussion on: Why Adding a Markdown Sublist Breaks the List on dev.to?

Collapse
justinjstark profile image
Justin J Stark • Edited

If you look at the outputted HTML, there are <br>s before item 2 and item 3. This is definitely a bug.

<ul>
<li>item 1
<ul>
<li>item 1.1</li>
</ul>
</li>
<br>
<li>item 2</li>
<br>
<li>item 3</li>
</ul>

My guess is this line is meant to strip out the brs but I don't have time to figure out why it doesn't work.