diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2016-12-07 12:54:25 +0100 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2016-12-07 12:54:25 +0100 |
| commit | 7fbfcb03d87feb369dcfabc1066e8f570ed471c8 (patch) | |
| tree | 6e2697313deae47e9a4b5e13394cc506888b4d60 /tests/rst-reader.native | |
| parent | 97274c99910aab5daafecc4ebc0d04ff0c117b51 (diff) | |
RST reader: fix hyperlink aliases.
`link <google_>`_
.. _google: https://google.com
is really a reference link.
Closes #3283.
Diffstat (limited to 'tests/rst-reader.native')
| -rw-r--r-- | tests/rst-reader.native | 1 |
1 files changed, 1 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 "."] |
