pandoc/test/command/262.md
John MacFarlane 33a29fbf87 RST reader: support anchors.
E.g.

    `hello`

    .. _hello:

    paragraph

This is supported by putting "paragraph" in a Div with
id `hello`.

Closes #262.
2017-06-27 15:03:16 +02:00

26 lines
381 B
Markdown

```
% pandoc -f rst
`hello`_ and `goodbye`_
.. _hello:
.. _goodbye: example.com
^D
<p><a href="example.com">hello</a> and <a href="example.com">goodbye</a></p>
```
```
% pandoc -f rst
`hello`_ `goodbye`_
.. _hello:
.. _goodbye:
paragraph
^D
<p><a href="#hello">hello</a> <a href="#goodbye">goodbye</a></p>
<div id="hello">
<div id="goodbye">
<p>paragraph</p>
</div>
</div>
```