Is it valid syntax to have ordered and unordered lists in sequence in markdown?

Posted by nfm on Stack Overflow See other posts from Stack Overflow or by nfm
Published on 2010-06-12T05:32:43Z Indexed on 2010/06/12 5:43 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

I just wrote some markdown and it doesn't seem to render correctly.

Is it legal syntax to have an ordered list, followed by newlines, then followed by an unordered list? Or is this a bug in bluecloth?

For example:

1. One
2. Two
3. Three

* Apple
* Banana
* Carrot

Bluecloth creates a single <ul> and nests apple, banana and carrot as <li>'s under it. Stackoverflow's markdown parser does this too.

Am I just doing it wrong? Surely this is a common usage case...

© Stack Overflow or respective owner

Related posts about syntax

Related posts about haml