summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-27 15:03:16 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-27 15:03:16 +0200
commit33a29fbf8720c0d7eec40b7014e3f819b05474ef (patch)
treef8a1cd6375025546fae1238dfe25b0233d31e912 /test
parent563c9c8687a62acc7361fb49126a1d2030f3a11e (diff)
RST reader: support anchors.
E.g. `hello` .. _hello: paragraph This is supported by putting "paragraph" in a Div with id `hello`. Closes #262.
Diffstat (limited to 'test')
-rw-r--r--test/command/262.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/262.md b/test/command/262.md
index e23e2d866..bda2acb35 100644
--- a/test/command/262.md
+++ b/test/command/262.md
@@ -7,3 +7,20 @@
^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>
+```