markdown
Version:
A sensible Markdown parser for javascript
15 lines (11 loc) • 780 B
HTML
<p>That’s some text with a footnote <sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> and another <sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> and another <sup id='fnref:3'><a href='#fn:3' rel='footnote'>3</a></sup>.</p>
<p>This is not a footnote.</p>
<div class='footnotes'><hr /><ol><li id='fn:1'>
<p>And that’s the footnote. This is second sentence (same paragraph).</p>
<a href='#fnref:1' rev='footnote'>↩</a></li><li id='fn:2'>
<p>This is the very long one.</p>
<p>That’s the second paragraph.</p>
<a href='#fnref:2' rev='footnote'>↩</a></li><li id='fn:3'>
<p>And that’s the footnote.</p>
<p>That’s the second paragraph of the footnote.</p>
<a href='#fnref:3' rev='footnote'>↩</a></li></ol></div>