mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +00:00
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.
19 lines
261 B
Markdown
19 lines
261 B
Markdown
```
|
|
% 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
|
|
```
|