[kramdown-users] Attributes on li elements

Shawn Van Ittersum svicalifornia at gmail.com
Sun Mar 14 14:50:42 EDT 2010


Also, to specify attributes for ul and li blocks:

* List item 1   {li-attributes}
* List item 2   {li-attributes}
* List item 3   {li-attributes}
   * Sublist item 1   {li-attributes}
   * Sublist item 2   {li-attributes}
   {sublist-ul-attributes}
{main-list-ul-attributes}

Shawn

On Sun, 14 Mar 2010 19:30:05 +0100, Thomas Leitner wrote:
>> I'd like to apply a class to some elements of an unordered list:
>> 
>> * Top item
>> * Second item
>> * Not as important {.low-priority}
>> * When we get around to it {.low-priority}
>> 
>> But the above Markdown does not apply the "low-priority" class to the
>> LI.  I've tried putting the attributes list after the asterisk, and
>> on the next line, with and without indent, and so far nothing has
>> worked.  Can you tell me how to accomplish this?
> 
> This is not possible in kramdown and I can't think of a syntax to
> enable this.
> 
> -- 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