[kramdown-users] Attributes on li elements

Shawn Van Ittersum svicalifornia at gmail.com
Mon Mar 15 15:42:53 EDT 2010

Then I would like to know about your plans to support extensions to kramdown, because I find this is be an important addition, at least for my own use, and I would like to add it.


On Mon, 15 Mar 2010 20:11:12 +0100, Thomas Leitner wrote:
> On Mon, 15 Mar 2010 21:32:02 +1000, Shawn Van Ittersum wrote:
>> 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).
> I'd rather not add such syntax since it would be a very special case
> and not used in nearly 100% of all cases. I tried to only add syntax
> that provided real value (like with the general block or span IALs) or
> which had prior art (like in the case with the header IDs). I think if
> you really need attributes on list items, you would be better off using
> standard HTML `li` tags.
> When implementing list support in kramdown, I thought about how to add
> IAL support to list items but found no good way to to do it... so I
> didn't.
> -- 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