diff options
| author | Stephen Altamirano <stephen@evilrobotstuff.com> | 2023-06-22 10:53:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-22 10:53:15 -0700 |
| commit | 83b69ead8123a3483ec79a9df5be85612c3b564e (patch) | |
| tree | fc6a4943ef4727d2d3ae0ca40e76b7f2565901b4 /test | |
| parent | ebcb61fb07e9d89a5a7a21cf7264b6852c3f5a8d (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')
| -rw-r--r-- | test/textile-reader.native | 27 | ||||
| -rw-r--r-- | test/textile-reader.textile | 6 |
2 files changed, 33 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" diff --git a/test/textile-reader.textile b/test/textile-reader.textile index 194353c9c..a0497b401 100644 --- a/test/textile-reader.textile +++ b/test/textile-reader.textile @@ -183,6 +183,10 @@ Automatic linking to "$":http://www.example.com. A link["with brackets":http://www.example.com]and no spaces. +A "link":link-target to a named target + +A "link":missing to a missing target + h1. Tables Textile allows tables with and without headers : @@ -277,3 +281,5 @@ h1. Comment blocks is here. not a comment. + +[link-target]ftp://example.com |
