summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorDavid A Roberts <d@vidr.cc>2017-05-02 17:00:37 +1000
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-02 09:00:37 +0200
commitc0192132cfbe2bc7ee22519b556cf9dbf52bac47 (patch)
tree521d1fd81f7f0db141d67f46336a3bb649038d90 /test/command
parent5d529e30c7690146e7f082e0baa616b68da3e594 (diff)
Markdown writer: Case-insensitive reference links. (#3616)
Ensure that we do not generate reference links whose labels differ only by case. Also allow implicit reference links when the link text and label are identical up to case. Closes #3615.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3615.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command/3615.md b/test/command/3615.md
new file mode 100644
index 000000000..5fbd48b3a
--- /dev/null
+++ b/test/command/3615.md
@@ -0,0 +1,18 @@
+```
+% pandoc -f html -t markdown --reference-links
+<a href="a">foo</a> <a href="b">Foo</a>
+^D
+[foo][] [Foo][1]
+
+ [foo]: a
+ [1]: b
+```
+
+```
+% pandoc -f html -t markdown --reference-links
+<a href="a">foo</a> <a href="a">Foo</a>
+^D
+[foo][] [Foo]
+
+ [foo]: a
+```