pandoc/test/command/3674.md
John MacFarlane 7b3aaee15a Markdown writer: Fixed duplicated reference links
with `--reference-links` and `--reference-location=section`.
Also ensure that there are no empty link references `[]`.

Closes #3674.
2017-05-17 16:23:33 +02:00

257 B

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