[kramdown-users] Paragraph in list items

Eric Sunshine sunshine at sunshineco.com
Mon Mar 15 06:28:37 EDT 2010


It sounds like a reasonable improvement since it lowers the 
surprise-factor by behaving in a fashion consistent with expectation, 
and should result in fewer trips to the documentation to figure out how 
to make the program do-what-I-mean.

-- ES


On 3/15/2010 3:01 AM, Thomas Leitner wrote:
> 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
>        here
>
>      * Some para
>        here
>
>      * Some para
>        here
>
> 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,
>    Thomas
> _______________________________________________
> kramdown-users mailing list
> kramdown-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/kramdown-users
>


More information about the kramdown-users mailing list