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.
374 B
374 B
% 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