mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
ccc0a5a630
In commit9190b19fc, we began to use the ID prefix for the <aside> holding the footnotes. In commit41da8ad9e, we started to use a <section> for this instead and the ID-prefix functionality was lost. This commit resumes using the ID prefix in the ID of this element so that multiple documents can be combined into one without ID conflicts.
16 lines
400 B
Markdown
16 lines
400 B
Markdown
```
|
|
% pandoc --id-prefix=foo
|
|
This.^[Has a footnote.]
|
|
^D
|
|
<p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1"
|
|
role="doc-noteref"><sup>1</sup></a></p>
|
|
<section id="foofootnotes" class="footnotes footnotes-end-of-document"
|
|
role="doc-endnotes">
|
|
<hr />
|
|
<ol>
|
|
<li id="foofn1"><p>Has a footnote.<a href="#foofnref1"
|
|
class="footnote-back" role="doc-backlink">↩︎</a></p></li>
|
|
</ol>
|
|
</section>
|
|
```
|