More list nesting bugs

A. Pagaltzis pagaltzis at gmx.de
Wed Jul 20 17:36:07 EDT 2005


Hi all,

here’s another case of Markdown failing:

* Foo

* Bar

* Baz

Quux

----

This produces:

<ul>
<li><p>Foo</p>

<ul><li><p>Bar</p>
<ul><li>Baz</li></ul></li>
</ul>

<p><p>Quux</p></li>
</ul>
<hr /></p>

Notice the ill-nested <p></p> pair. The choice of horizontal rule
exacerbates the problem, as they are not only ill-nested, but
also extraneous. (I used that because it’s what was in my
original file when I ran afoul of the bug.)

$ Markdown -v
This is Markdown, version 1.0.2b2.
Copyright 2004 John Gruber
http://daringfireball.net/projects/markdown/

Also confirmed on the Dingus.

I am getting the feeling that if I write a simple generator for
random Markdown markup that checks the output for invalidly
nested tags I will find a slew of bugs in no time flat…

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>


More information about the Markdown-Discuss mailing list