pandoc/test/command/rst-links.md
John MacFarlane b94f1e2045 RST reader: more accurate parsing of references.
Previously we erroneously included the enclosing
backticks in a reference ID (closes #4156).

This change also disables interpretation of
syntax inside references, as in docutils.
So, there is no emphasis in

    `my *link*`_
2017-12-14 12:48:43 -08:00

18 lines
166 B
Markdown

```
% pandoc -f rst
`*ab*`_
.. _`*ab*`: foo
^D
<p><a href="foo">*ab*</a></p>
```
```
% pandoc -f rst
`A B
c`_
.. _A B C: foo
^D
<p><a href="foo">A B c</a></p>
```