PHP Markdown (javascript injection & list processing)

John Gruber gruber at fedora.net
Thu Jul 21 22:30:00 EDT 2005


Michel Fortin <michel.fortin at michelf.com> wrote on 07/19/05 at 10:36 pm:


> This is not really a bug. Since list items can contain multiple

> paragraphs, the list item has to encompass everything until it finds an

> unindented paragraph. There is no reliable way to tell if what you want

> next is a code block, or a new paragraph inside the list item. So you

> will have to work around it. (You could write your list or your code

> block directly in HTML as a workaround.)

>

> Counterintuitive? Maybe, but making it a code block would mean giving

> up entirely paragraphs in list items.


I think maybe we can get around this, sort of, by stating that two
line breaks always end a list.

So this would be a two item list with the second item containing two
paragraphs:

* One
* Two

Buckle my shoe

But this would be a two item list followed by a code block:

* One
* Two


Buckle my shoe

-J.G.


More information about the Markdown-Discuss mailing list