[kramdown-users] Paragraph in list items

Thomas Leitner t_leitner at gmx.at
Mon Mar 15 03:01:54 EDT 2010

Hi everybody,

the current behaviour for whether a list item is wrapped in a paragraph
or not depends on the list item being followed by a blank line. As
pointed out in the syntax document, this can easily be done for all but
the last list item. The last list item needs an EOB marker placed so
that it is converted to a paragraph.

I'd like to change this behaviour so that the last list item is *also*
converted to a paragraph if *all* other list items are wrapped in
paragraphs. This would create correct output for lists such as:

    * Some para

    * Some para

    * Some para

Normally, the last paragraph would just be text and not wrapped into a
paragraph. With the new rule, it would also be converted to a paragraph
as expected.

What do you think?

Best regards,

More information about the kramdown-users mailing list