kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Support special attributes for list items containing block data (e.g., paragraphs) #17

Closed douyo closed 8 years ago

douyo commented 9 years ago

Special attributes don't seem to be supported for list items that contain block data.

If list items are separated by blank lines or if list items have multiple paragraphs, hoextdown just passes the unprocessed special attribute markdown to the rendered HTML as is.

For example, with this markdown:

*  item {.foo}

   *  item {#bar}

      blah blah

*  item {baz="goo"}

hoextdown doesn't convert the special attributes to HTML:

<ul>
<li><p>item {.foo}</p>

<ul>
<li><p>item {#bar}</p>

<p>blah blah</p></li>
</ul></li>
<li><p>item {baz=&quot;goo&quot;}</p></li>
</ul>