[kramdown-users] Attributes on li elements

Shawn Van Ittersum svicalifornia at gmail.com
Mon Mar 15 07:32:02 EDT 2010


How about this syntax, then:

* First item
  {p-attr}

* {li-attr} Second Item

* Third Item
{ul-attr}

Note that the indentation of the ul-attr block aligns it with the list item asterisks (or numerals, if this were an ordered list instead).

Shawn

On Mon, 15 Mar 2010 00:01:09 +0100, Thomas Leitner wrote:
> On Sun, 14 Mar 2010 14:51:00 -0400, Eric Sunshine wrote:
>> Perhaps take the indentation of the attribute specification into
>> account:
>> 
>>    * Foo
>>    * Bar
>>      {:.li-attr}
>>    {:.ul-attr}
> 
> Problem with ambiguity: Does the `{:.li-attr}` apply to the potential
> paragraph containing `bar` or to the list item. What about this:
> 
> * Foo
> * This is 
>   some para.
> 
>   And some more.
>   {:li-attr}
> 
> -- 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