summaryrefslogtreecommitdiff
path: root/test/command/3674.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/3674.md')
-rw-r--r--test/command/3674.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/command/3674.md b/test/command/3674.md
new file mode 100644
index 000000000..09f4e0d1e
--- /dev/null
+++ b/test/command/3674.md
@@ -0,0 +1,26 @@
+Make sure we don't get duplicate reference links, even with
+`--reference-location=section`.
+
+```
+% pandoc --reference-links -t markdown --reference-location=section --atx-headers
+# a
+
+![](a)
+
+# b
+
+![](b)
+
+^D
+# a
+
+![][1]
+
+ [1]: a
+
+# b
+
+![][2]
+
+ [2]: b
+```