aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-27 14:35:03 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-27 14:35:03 +0200
commit563c9c8687a62acc7361fb49126a1d2030f3a11e (patch)
tree1d6c4a0d304559dbdefd3a8d7a8fc1c64426777d /test
parenta868b238f253423281b2648896f184e7cdc05014 (diff)
downloadpandoc-563c9c8687a62acc7361fb49126a1d2030f3a11e.tar.gz
RST reader: Handle chained link definitions.
For example, .. _hello: .. _goodbye: example.com Here both `hello` and `goodbye` should link to `example.com`. Fixes the first part of #262.
Diffstat (limited to 'test')
-rw-r--r--test/command/262.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/command/262.md b/test/command/262.md
new file mode 100644
index 000000000..e23e2d866
--- /dev/null
+++ b/test/command/262.md
@@ -0,0 +1,9 @@
+```
+% 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>
+```