aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-01-05 12:07:02 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-01-05 12:07:02 -0800
commit15ba184e6e7825898ebae5a59e2c3a60e0992da0 (patch)
tree17dfd0da73f21da8e1570a611d772c63a3e48ade /test/command
parent385b6a3b215124fd2dfa044b8847d69a6cf14a73 (diff)
downloadpandoc-15ba184e6e7825898ebae5a59e2c3a60e0992da0.tar.gz
HTML writer: fix implicit_figure at end of footnotes.
Closes #7006.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7006.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command/7006.md b/test/command/7006.md
new file mode 100644
index 000000000..e7951fb1a
--- /dev/null
+++ b/test/command/7006.md
@@ -0,0 +1,20 @@
+```
+% pandoc -t html
+Test.[^fn]
+
+[^fn]: Foo:
+
+ ![Caption.](/image.jpg)
+^D
+<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p>
+<section class="footnotes" role="doc-endnotes">
+<hr />
+<ol>
+<li id="fn1" role="doc-endnote"><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>
+```