Maybe this has been reported before, but I can't find it in the archives. A code block immediately following an ordered or unordered list breaks both the list and the code block. Badly.
Tab or spaces for the block don't matter, legal indentation variants of the list don't matter. Tried a bunch of casual workarounds, extra newlines, etc., but no joy. Needs explicit <pre><code> -- which also fixes the preceding list, however Markdown then wraps the <pre> block in a paragraph. PHP Markdown Extra does not. Reproducible in current Markdown, PHP Markdown Extra, and Maruku. LQ Input: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Some text. * I am * a list I, on the other hand, am a code block. My lines are indented four spaces. More text. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Output: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <p>Some text.</p> <ul> <li>I am</li> <li><p>a list</p> <p>I, on the other hand, am a code block. My lines are indented four spaces.</p></li> </ul> <p>More text.</p> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss