Disambiguate List Item Followed by Code Block

David E. Wheeler david at kineticode.com
Wed Feb 18 13:02:29 EST 2009


On Feb 18, 2009, at 9:50 AM, John MacFarlane wrote:


> You can insert an HTML comment between them. It's a kludge, but

> that's the only way I know of.

>

> * This is a list

> item.

> * And so is this.

>

> <!-- end of list -->

>

> Definitely a code block.


Ow. Yeah, I'd never do that in an email, of course, so…yuck. Well, I
just hope that I never have to put a code block immediately after a
list. I can't think of a circumstance in which I would, I'm glad to
say, so I think that the choice made by Markdown.pl and discount is
the correct one.

Thanks for your reply!

Best,

David


More information about the Markdown-Discuss mailing list