aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-04-24 16:54:52 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-04-24 16:54:52 -0700
commitf268ae30350e3d94e57e58e5a543d3292d204b83 (patch)
treeee4f02c6e9f765ae3790e78b3af19a4afd0433aa /test
parent3e52c402d0744f36462aeb3882d2cf2844529b0f (diff)
downloadpandoc-f268ae30350e3d94e57e58e5a543d3292d204b83.tar.gz
RST writer: properly handle images with same alt text.
Previously we created duplicate references for these in rendering RST. Closes #6194.
Diffstat (limited to 'test')
-rw-r--r--test/command/6194.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/6194.md b/test/command/6194.md
new file mode 100644
index 000000000..43be26405
--- /dev/null
+++ b/test/command/6194.md
@@ -0,0 +1,14 @@
+```
+% pandoc -f markdown -t rst
+image1: ![foo](x.png)
+
+image2: ![foo](y.png)
+^D
+image1: |foo|
+
+image2: |image1|
+
+.. |foo| image:: x.png
+.. |image1| image:: y.png
+```
+