kjdev / hoextdown

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

If a list item contains multiple footnote definitions, only the first footnote definition is handled correctly #25

Open douyo opened 8 years ago

douyo commented 8 years ago

If a list item contains multiple footnote definitions:

* A footnote[^1] here

  Another footnote[^2] here

  [^1]: x

  [^2]: y

the markdown processor treats the 2nd and subsequent footnote definitions as part of the first footnote definition.

1. xxx ↩

   [^2]: yyy

HTML:

<li id="fn1">
<p>x&nbsp;<a href="#fnref1" rev="footnote">↩</a></p>

<p>[^2]: y</p>
</li>
douyo commented 8 years ago

I can work around it by just moving the footnote definitions outside the list. (The footnote definitions were in the list item because the original case for this was a long list with multiple paragraphs under each list item.)