summaryrefslogtreecommitdiff
path: root/tests/textile-reader.native
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-07-13 14:01:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-07-13 14:01:56 -0700
commitf68b05e74b7cc0dd0e217cc2650169a3fe7a41a0 (patch)
tree31bd85fce44ffdca4ec937debfdac4ca88f030aa /tests/textile-reader.native
parent2192f02e19942c45828b7a506ca3a2b8b8b74f9d (diff)
Textile reader: properly handle links with surrounding brackets.
Square brackets need to be used when the link isn't surrounded by spaces or punctuation, or when the URL ending may be ambiguous. Closes #564.
Diffstat (limited to 'tests/textile-reader.native')
-rw-r--r--tests/textile-reader.native1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 39359d13a..f5ca5ae0f 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -83,6 +83,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
,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 [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"]
,Para [Str "Textile",Space,Str "allows",Space,Str "tables",Space,Str "with",Space,Str "and",Space,Str "without",Space,Str "headers",Space,Str ":"]
,Header 2 [Str "Without",Space,Str "headers"]