summaryrefslogtreecommitdiff
path: root/test/textile-reader.native
diff options
context:
space:
mode:
authorStephen Altamirano <stephen@evilrobotstuff.com>2023-06-22 10:53:15 -0700
committerGitHub <noreply@github.com>2023-06-22 10:53:15 -0700
commit83b69ead8123a3483ec79a9df5be85612c3b564e (patch)
treefc6a4943ef4727d2d3ae0ca40e76b7f2565901b4 /test/textile-reader.native
parentebcb61fb07e9d89a5a7a21cf7264b6852c3f5a8d (diff)
Textile reader: Add support for link references (#8706)
Textile supports what it calls "link alias", which are analogous to Markdown's reference-style links.
Diffstat (limited to 'test/textile-reader.native')
-rw-r--r--test/textile-reader.native27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/textile-reader.native b/test/textile-reader.native
index 184c1da90..3c23a5c73 100644
--- a/test/textile-reader.native
+++ b/test/textile-reader.native
@@ -749,6 +749,33 @@ Pandoc
, Space
, Str "spaces."
]
+ , Para
+ [ Str "A"
+ , Space
+ , Link
+ ( "" , [] , [] ) [ Str "link" ] ( "ftp://example.com" , "" )
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , Space
+ , Str "named"
+ , Space
+ , Str "target"
+ ]
+ , Para
+ [ Str "A"
+ , Space
+ , Link ( "" , [] , [] ) [ Str "link" ] ( "missing" , "" )
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , Space
+ , Str "missing"
+ , Space
+ , Str "target"
+ ]
, Header 1 ( "tables" , [] , [] ) [ Str "Tables" ]
, Para
[ Str "Textile"