f63b76e169
Previously we used Setext (underlined) headings by default. The default is now ATX (`##` style). * Add the `--markdown-headings=atx|setext` option. * Deprecate `--atx-headers`. * Add constructor 'ATXHeadingInLHS` constructor to `LogMessage` [API change]. * Support `markdown-headings` in defaults files. * Document new options in MANUAL. Closes #6662.
39 lines
414 B
Markdown
39 lines
414 B
Markdown
Make sure we don't get duplicate reference links, even with
|
|
`--reference-location=section`.
|
|
|
|
```
|
|
% pandoc --reference-links -t markdown --reference-location=section
|
|
# a
|
|
|
|
![](a)
|
|
|
|
# b
|
|
|
|
![](b)
|
|
|
|
^D
|
|
# a
|
|
|
|
![][1]
|
|
|
|
[1]: a
|
|
|
|
# b
|
|
|
|
![][2]
|
|
|
|
[2]: b
|
|
```
|
|
|
|
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>
|
|
```
|