aboutsummaryrefslogtreecommitdiff
path: root/test/command/5476.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-05-01 16:56:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-05-01 16:56:37 -0700
commita20323033ee0a718fc18ec2db00c913369944e29 (patch)
tree9c161a20f84634420a4e7003b15cd3b326bfc62f /test/command/5476.md
parent4a7f5b6d13bbce297f04f616e972c6f19a2f84af (diff)
downloadpandoc-a20323033ee0a718fc18ec2db00c913369944e29.tar.gz
Fix footnote in image caption.
Regression! The fix for #4683 broke this case.
Diffstat (limited to 'test/command/5476.md')
-rw-r--r--test/command/5476.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/5476.md b/test/command/5476.md
new file mode 100644
index 000000000..6e744f5ec
--- /dev/null
+++ b/test/command/5476.md
@@ -0,0 +1,12 @@
+```
+% pandoc -t latex
+![moon^[the moon]](test/lalune.jpg)
+^D
+\begin{figure}
+\centering
+\includegraphics{test/lalune.jpg}
+\caption[moon]{moon\footnotemark{}}
+\end{figure}
+\footnotetext{the moon}
+```
+