Awkee / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

multi-paragraph list items are not working #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
according to official markdown:
http://daringfireball.net/projects/markdown/syntax#list

multi-paragraph lists such as:

1.  This is a list item with two paragraphs. Lorem ipsum dolor
    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
    mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
    sit amet velit.

2.  Suspendisse id sem consectetuer libero luctus adipiscing.

are supported. However, trying the above on pandoc 1.5.1.1 and also the
"try pandoc" web script, puts the 2nd paragraph in the first list, outside
of the list item.

Original issue reported on code.google.com by infinity0x@gmail.com on 11 May 2010 at 9:58

GoogleCodeExporter commented 9 years ago
oh wait, my mistake. the example presented does work, but the example i was 
testing
with doesn't, because i was using 2-space indents rather than 4-space indents.

however, it would be nice if support for that was added to pandoc. ie. make the 
next
paragraph part of the list-item, if it's indented by the same amount as the 
first
paragraph in the list-item.

Original comment by infinity0x@gmail.com on 11 May 2010 at 10:00

GoogleCodeExporter commented 9 years ago
Restructured text works that way.  But pandoc follows the four-space rule that 
is implicit in the official 
markdown syntax documentation (though not followed strictly by Markdown.pl).  
All block-level elements inside 
a list item must be indented four spaces.

For more discussion of this, you can search the pandoc-discuss list for 
"four-space rule." It comes up frequently. 

Original comment by fiddloso...@gmail.com on 11 May 2010 at 6:56