. tests/functions.sh
|
|
|
|
title "markdown extra-style footnotes"
|
|
|
|
rc=0
|
|
MARKDOWN_FLAGS=
|
|
|
|
FOOTIE='I haz a footnote[^1]
|
|
[^1]: yes?'
|
|
|
|
try -ffootnote 'footnotes (-ffootnote)' "$FOOTIE" \
|
|
'<p>I haz a footnote<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>
|
|
<div class="footnotes">
|
|
<hr/>
|
|
<ol>
|
|
<li id="fn:1">
|
|
<p>yes?<a href="#fnref:1" rev="footnote">↩</a></p></li>
|
|
</ol>
|
|
</div>'
|
|
|
|
try -ffootnote -Cfoot 'footnotes (-ffootnote -Cfoot)' "$FOOTIE" \
|
|
'<p>I haz a footnote<sup id="footref:1"><a href="#foot:1" rel="footnote">1</a></sup></p>
|
|
<div class="footnotes">
|
|
<hr/>
|
|
<ol>
|
|
<li id="foot:1">
|
|
<p>yes?<a href="#footref:1" rev="footnote">↩</a></p></li>
|
|
</ol>
|
|
</div>'
|
|
|
|
try -fnofootnote 'footnotes (-fnofootnote)' "$FOOTIE" \
|
|
'<p>I haz a footnote<a href="yes?">^1</a></p>'
|
|
|
|
summary $0
|
|
exit $rc
|