79855ef934
Previously the Markdown writer would sometimes create links where there were none in the source. This is now avoided by selectively escaping bracket characters when they occur in a place where a link might be created. Closes #3619.
28 lines
374 B
Markdown
28 lines
374 B
Markdown
```
|
|
% pandoc -f html -t markdown --reference-links
|
|
<a href="foo">bar</a>: baz
|
|
^D
|
|
[bar][]: baz
|
|
|
|
[bar]: foo
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t markdown --reference-links
|
|
<a href="foo">bar</a>(baz)
|
|
^D
|
|
[bar][](baz)
|
|
|
|
[bar]: foo
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t markdown_strict --reference-links
|
|
<a href="a">foo</a><br/><a href="b">bar</a>
|
|
^D
|
|
[foo][]
|
|
[bar]
|
|
|
|
[foo]: a
|
|
[bar]: b
|
|
```
|