Mixed lists are confusing in markdown


(Sam Saffron) #1
  1. test
  • test
  • test
1. test
- test
- test

Pandoc does a much better job and splits out the 2 lists.


(Jeff Atwood) #2

Check babelmark. No way this is a bug filed against us.


(Sam Saffron) #3

It’s our but, in our markdown engine:

Works fine in pandoc/parsedown and maruku

<ol style="list-style-type: decimal">
<li>test</li>
</ol>
<ul>
<li>test</li>
<li>test</li>
</ul>

Fails in showdown and our engine.

I am leaving this as a bug cause I eventually want to improve list support, which always trips me. Not urgent, but I want to fix.


(Jeff Atwood) #4

See the babelmark results:

http://johnmacfarlane.net/babelmark2/?text=1.+test -+test -+test

Shows up as plain list in 5 out of the 15 implementations, and flat-out incorrect in 3 of them. (I didn’t include PHP-Markdown in the screenshot, but it renders wrong.)

Not our bug. If anything this is one of the (many) ambiguities in the markdown spec. Changing back to not our bug.