mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 21:55:44 +00:00
* To conform to validator's expectations, `doc-footnote` role is used with `aside` and `doc-endnotes` with `section`. * `aside` is used only for notes at ends of sections or blocks; if all the notes come at the end of the document, `section` is used so we can have the `doc-endnotes` role.
24 lines
508 B
Markdown
24 lines
508 B
Markdown
```
|
|
% pandoc -t html
|
|
Test.[^fn]
|
|
|
|
[^fn]: Foo:
|
|
|
|

|
|
^D
|
|
<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1"
|
|
role="doc-noteref"><sup>1</sup></a></p>
|
|
<section id="footnotes" class="footnotes footnotes-end-of-document"
|
|
role="doc-endnotes">
|
|
<hr />
|
|
<ol>
|
|
<li id="fn1"><p>Foo:</p>
|
|
<figure>
|
|
<img src="/image.jpg" alt="Caption." />
|
|
<figcaption aria-hidden="true">Caption.</figcaption>
|
|
</figure>
|
|
<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></li>
|
|
</ol>
|
|
</section>
|
|
```
|