aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-11-06 16:05:17 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2012-11-06 16:05:17 -0800
commit4cd573c61f61885cb368b40dccd1b458c39846c7 (patch)
treec8fe5e6d7429b1d14fbe6b6ae1bfcd797b8fe626 /tests
parent4aa3e1f978fc285d16f047c800504b03cc897ec8 (diff)
downloadpandoc-4cd573c61f61885cb368b40dccd1b458c39846c7.tar.gz
Textile reader/writer: Fixed autolinks.
Previously the textile reader and writer incorrectly implented RST-style autolinks for URLs and email addresses. This has been fixed. Now an autolink is done this way: "$":http://myurl.com
Diffstat (limited to 'tests')
-rw-r--r--tests/textile-reader.native2
-rw-r--r--tests/textile-reader.textile2
-rw-r--r--tests/writer.textile8
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 4002ad557..575aefdf9 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -85,7 +85,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
,Header 2 [Str "Explicit"]
,Para [Str "Just",Space,Str "a",Space,Link [Str "url"] ("http://www.url.com","")]
,Para [Link [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
-,Para [Str "Automatic",Space,Str "linking",Space,Str "to",Space,Link [Str "http://www.example.com"] ("http://www.example.com",""),Space,Str "and",Space,Link [Str "foobar@example.com"] ("mailto:foobar@example.com",""),Str "."]
+,Para [Str "Automatic",Space,Str "linking",Space,Str "to",Space,Link [Str "http://www.example.com"] ("http://www.example.com",""),Str "."]
,Para [Link [Str "Example"] ("http://www.example.com/",""),Str ":",Space,Str "Example",Space,Str "of",Space,Str "a",Space,Str "link",Space,Str "followed",Space,Str "by",Space,Str "a",Space,Str "colon",Str "."]
,Para [Str "A",Space,Str "link",Link [Str "with",Space,Str "brackets"] ("http://www.example.com",""),Str "and",Space,Str "no",Space,Str "spaces",Str "."]
,Header 1 [Str "Tables"]
diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile
index a096ded1d..067cf690a 100644
--- a/tests/textile-reader.textile
+++ b/tests/textile-reader.textile
@@ -157,7 +157,7 @@ Just a "url":http://www.url.com
"Email link":mailto:nobody@nowhere.net
-Automatic linking to http://www.example.com and foobar@example.com.
+Automatic linking to "$":http://www.example.com.
"Example":http://www.example.com/: Example of a link followed by a colon.
diff --git a/tests/writer.textile b/tests/writer.textile
index 51aca5a08..ace6d8763 100644
--- a/tests/writer.textile
+++ b/tests/writer.textile
@@ -650,15 +650,15 @@ Here's an "inline link in pointy braces":/script?foo=1&bar=2.
h2. Autolinks
-With an ampersand: "http://example.com/?foo=1&bar=2":http://example.com/?foo=1&bar=2
+With an ampersand: "$":http://example.com/?foo=1&bar=2
* In a list?
-* "http://example.com/":http://example.com/
+* "$":http://example.com/
* It should.
-An e-mail address: "nobody@nowhere.net":mailto:nobody@nowhere.net
+An e-mail address: "<tt>nobody@nowhere.net</tt>":mailto:nobody@nowhere.net
-bq. Blockquoted: "http://example.com/":http://example.com/
+bq. Blockquoted: "$":http://example.com/