Le 2007-08-03 à 11:16, Lou Quillio a écrit :

Input:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Some text.

  *  I am
  *  a list

    I, on the other hand, am a code block.  My lines are
    indented four spaces.

More text.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is simply because code blocks and the content of a list item with block-level content are denoted by the same thing: four space of indentation. To be able to create list items with block-level content, it is necessary to interpret indented content after a list item as the continuation of the content of that particular item. This creates the impossibility to create a code block immediately following a list, but the other option would be the impossibility of having block-level content (like paragraphs) inside a list item.

This has been reported a couple of time already. The current workaround is to insert an HTML comment, unindented, between the list and the code block. That's clearly not optimal however.


Michel Fortin
[EMAIL PROTECTED]
http://www.michelf.com/


_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to