Doubt about standard syntax

Michel Fortin michel.fortin at michelf.com
Fri Dec 29 15:02:01 EST 2006


Le 2006-12-29 à 12:45, Andrea Censi a écrit :


> -----------

> Paragraph and no space:

> * ciao

>

> Paragraph and 1 space:

> * ciao

>

> Paragraph and 3 spaces:

> * ciao

>

> Paragraph and 4 spaces:

> * ciao

> -----------

>

> In other words, a paragraph, once started, eats everything until a

> blank line?


From the Markdown 1.0.1 (and PHP Markdown 1.0.1) changelog:


> Sort-of fixed a bug where lines in the middle of hard-wrapped

> paragraphs, which lines look like the start of a list item, would

> accidentally trigger the creation of a list. E.g. a paragraph that

> looked like this:

>

> I recommend upgrading to version

> 8. Oops, now this line is treated

> as a sub-list.

>

> This is fixed for top-level lists, but it can still happen for sub-

> lists. E.g., the following list item will not be parsed properly:

>

> * I recommend upgrading to version

> 8. Oops, now this line is treated

> as a sub-list.

>

> Given Markdown’s list-creation rules, I’m not sure this can be fixed.


Obviously, the same rule applies to unordered lists too. I don't
think this is documented in the syntax documentation.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/




More information about the Markdown-Discuss mailing list