aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-07 12:54:25 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-12-07 12:54:25 +0100
commit7fbfcb03d87feb369dcfabc1066e8f570ed471c8 (patch)
tree6e2697313deae47e9a4b5e13394cc506888b4d60 /tests
parent97274c99910aab5daafecc4ebc0d04ff0c117b51 (diff)
downloadpandoc-7fbfcb03d87feb369dcfabc1066e8f570ed471c8.tar.gz
RST reader: fix hyperlink aliases.
`link <google_>`_ .. _google: https://google.com is really a reference link. Closes #3283.
Diffstat (limited to 'tests')
-rw-r--r--tests/rst-reader.native1
-rw-r--r--tests/rst-reader.rst2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index 4a3df7f24..768a05c24 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -214,6 +214,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa
,Para [Str "Explicit",Space,Str "with",Space,Str "no",Space,Str "label:",Space,Link ("",[],[]) [Str "foo"] ("foo",""),Str "."]
,Para [Str "Two",Space,Str "anonymous",Space,Str "links:",Space,Link ("",[],[]) [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link ("",[],[]) [Str "the",Space,Str "second"] ("/url2/","")]
,Para [Str "Reference",Space,Str "links:",Space,Link ("",[],[]) [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link ("",[],[]) [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link ("",[],[]) [Str "link1"] ("/url1/",""),Space,Str "again."]
+,Para [Str "Another",Space,Link ("",[],[]) [Str "style",Space,Str "of",Space,Str "reference",Space,Str "link"] ("/url1/",""),Str "."]
,Para [Str "Here\8217s",Space,Str "a",Space,Link ("",[],[]) [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link ("",[],[]) [Str "AT&T"] ("/url/",""),Str "."]
,Para [Str "Autolinks:",Space,Link ("",[],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link ("",[],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index 450f2b939..cfe959f2d 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -390,6 +390,8 @@ Reference links: `link1`_ and `link2`_ and link1_ again.
.. _link1: /url1/
.. _`link2`: /url2/
+Another `style of reference link <link1_>`_.
+
Here's a `link with an ampersand in the URL`_.
Here's a link with an amersand in the link text: `AT&T </url/>`_.