2017-05-17 16:23:33 +02:00
|
|
|
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
|
|
|
|
```
|
2017-05-18 13:20:32 +02:00
|
|
|
|
|
|
|
Subsidiary issue: allow line break between reference link
|
|
|
|
url/title and attributes:
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc
|
|
|
|
[a]
|
|
|
|
|
|
|
|
[a]: url
|
|
|
|
{.class}
|
|
|
|
^D
|
|
|
|
<p><a href="url" class="class">a</a></p>
|
|
|
|
```
|