Multiline Link using HTML br tags: input: | First "link":/test/ and now a second link with newline in it: "line 1 line 2":/test/. Even "Telephone links":tel:123123123 expect: |

First link and now a second link with newline in it: line 1
line 2
. Even Telephone
links

Left and right: input: | "Left":/ and "Right":/ "Left":/ and "Right": "Left":/ and "middle": and "Right": "Left": and "Right":/ "Left": and "middle": and "Right":/ "Left": and "Right": expect: |

Left and Right

Left and “Right”:

Left and “middle”: and “Right”:

“Left”: and Right

“Left”: and “middle”: and Right

“Left”: and “Right”:

Right said Fred - no space: input: | Right said Fred" Right said Fred": Right said Fred":/ "Right said Fred":/ expect: |

Right said Fred”

Right said Fred”:

Right said Fred”:/

Right said Fred

Right said Fred - spaces: input: | Right said Fred " Right said Fred ": Right said Fred ":/ "Right said Fred ":/ expect: |

Right said Fred “

Right said Fred “:

Right said Fred “:/

Right said Fred

Fred said: input : | Fred said, ":We'll just have to leave it standing on the landing:". expect: |

Fred said, “:We’ll just have to leave it standing on the landing:”.

False link: input : | Hello :"world"! expect: |

Hello :“world”!

Under and over: input: | Under and :"over": Under and :"over": the wall. Under and :"over":/ the wall. Under and "over":/ the wall. expect: |

Under and :“over”:

Under and :“over”: the wall.

Under and :over the wall.

Under and over the wall.

Link and image encoding : input: | !http://example.com/?size=60&file=image.png! !http://example.com/needs<&"encoding.png! "Requires encoding":http://example.com/?foo&bar "Entity is merely part of text":http://example.com/?foo&bar "In path component":http://example.com/&.html expect: |

Requires encoding

Entity is merely part of text

In path component

URLs as non-links : notes: Straight URL text sequences should not be converted to a hyperlink. input: | http://cnn.com "http://cnn.com" "http://cnn.com(is a website)" expect: |

http://cnn.com

“http://cnn.com”

“http://cnn.com(is a website)”

Quoted double-quote in links: input: | The use of the character ""' in textile. "The use of the character " in textile":help.html..! ""The use of the character " in textile"":help.html..! ""The use of the character """ in textile"":help.html..! "The use of the character """ in textile":help.html..! "The use of the character '"' in textile":help.html..! ""The use of the character '"' in textile"":help.html..! "The use of the character {"} in textile":help.html..! ""The use of the character {"} in textile"":help.html..! "The use of the character ["] in textile":help.html..! ""The use of the character ["] in textile"":help.html..! "The use of the character (") in textile":help.html..! ""The use of the character (") in textile"":help.html..! "The use of the character «"» in textile":help.html..! ""The use of the character «"» in textile"":help.html..! "The use of the character »"« in textile":help.html..! "The use of the character ‹"› in textile":help.html..! "The use of the character ›"‹ in textile":help.html..! "The use of the character „"“ in textile":help.html..! "The use of the character ‚"‘ in textile":help.html..! "The use of the character ‘"’ in textile":help.html..! "The use of the character ”"“ in textile":help.html..! "'The use of the character " in textile'":help.html..! expect: |

The use of the character “”’ in textile.

The use of the character “ in textile..!

“The use of the character “ in textile”..!

“The use of the character “"” in textile”..!

The use of the character “"” in textile..!

The use of the character ‘"’ in textile..!

“The use of the character ‘"’ in textile”..!

The use of the character {"} in textile..!

“The use of the character {"} in textile”..!

The use of the character ["] in textile..!

“The use of the character ["] in textile”..!

The use of the character (") in textile..!

“The use of the character (") in textile”..!

The use of the character «"» in textile..!

“The use of the character «"» in textile”..!

The use of the character »"« in textile..!

The use of the character ‹"› in textile..!

The use of the character ›"‹ in textile..!

The use of the character „"“ in textile..!

The use of the character ‚"‘ in textile..!

The use of the character ‘"’ in textile..!

The use of the character ”"“ in textile..!

‘The use of the character “ in textile’..!

Encoded spaces: input : | "Wiked space snakes":http://example.com/wiked%20rattling%20snakes "Wiked space snakes":/example.com/wiked%20rattling%20snakes "Wiked space snakes":example.com/wiked%20rattling%20snakes expect: |

Wiked space snakes

Wiked space snakes

Wiked space snakes

Redcloth Links: input: | "testing": "Link":/foo.html, me "Link":/foo.html! me "Link":/foo.html; me "Link":/foo.html. "(just in case you were wondering)":http://slashdot.org/ "(myclass) (just in case you were wondering)":http://slashdot.org/ "It is (very) fortunate that this works":http://slashdot.org/ "link text":#1 "link text":#a "link text":#a1 "link text":#a10 "link text":?1 "link text":?a "link text":?a1 "link text":?a10 "link text":?q[]=1 "link text":?q[]=a "link text":?q[]=a1 "link text":?q[]=a10 "link text":index.html "link text":index.html#1 "link text":index.html#a "link text":index.html#a1 "link text":index.html#a10 "link text":http://example.com/ "link text":http://example.com/#1 "link text":http://example.com/#a "link text":http://example.com/#a1 "link text":http://example.com/#a10 "link text":http://example.com/index.html "link text":http://example.com/index.html#a "link text":http://example.com/index.html#1 "link text":http://example.com/index.html#a1 "link text":http://example.com/index.html#a10 "link text":http://example.com/?foo=bar "link text":http://example.com/?foo=bar#a "link text":http://example.com/?foo=bar#1 "link text":http://example.com/?foo=bar#a1 "link text":http://example.com/?foo=bar#a10 "link text":http://example.com/?foo=bar&a=b "link text":http://example.com/?foo=bar&a=b#1 "link text":http://example.com/?foo=bar&a=b#a "link text":http://example.com/?foo=bar&a=b#a1 "link text":http://example.com/?foo=bar&a=b#a10 This is a "link":http://example.com/ This is a "link":http://example.com/. This is a "link":http://example.com/index.html. "link text":http://example.com/#1 "link text":http://example.com/#a "link text":http://example.com/#a1 "link text":http://example.com/#a10 "link text":http://example.com/index.html "link text":http://example.com/index.html#a "link text":http://example.com/index.html#1 "link text":http://example.com/index.html#a1 "link text":http://example.com/index.html#a10 "link text":http://example.com/?foo=bar "link text":http://example.com/?foo=bar#a "link & text":http://example.com/?foo=bar#a "link text":http://example.com/?foo=bar#1 "link text":http://example.com/?foo=bar#a1 "link text":http://example.com/?foo=bar#a10 "link text":http://example.com/?foo=bar&a=b "link text":http://example.com/?foo=bar&a=b#1 "link text":http://example.com/?foo=bar&a=b#a "link text":http://example.com/?foo=bar&a=b#a1 "link text":http://example.com/?foo=bar&a=b#a10 This is a "link":http://example.com/ This is a "link":http://example.com/. This is a "link":http://example.com/index.html. "link & text":http://example.com/?foo=bar#a (This is a "link":http://example.com/?foo=bar#a10) but this is not. "(link) text(link title)":http://example.com/ "(link)text (link title)":http://example.com/ "(link) text (link title)":http://example.com/ "Dive Into XML":http://www.xml.com/pub/au/164 "Lab Exercises":../lab/exercises/exercises.html. Go to "discuss":http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&thread=26627 to discuss. * "rubylang":http://www.ruby-lang.org/en/ expect: |

“testing”:

Link, me

Link! me

Link; me

Link.

(just in case you were wondering)

(just in case you were wondering)

It is (very) fortunate that this works

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

This is a link

This is a link.

This is a link.

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link text

link & text

link text

link text

link text

link text

link text

link text

link text

link text

This is a link

This is a link.

This is a link.

link & text

(This is a link) but this is not.

text

text

text

Dive Into XML

Lab Exercises.

Go to discuss to discuss.

Links in tables: input: | | "abc":url | | "abc":url| |"abc":url | |"abc":url| |"abc":url|"def":url2| |"(class)abc(title)":url|"[en-GB]def[inition]":url2| |""福島駅"":http://ja.wikipedia.org/wiki/福島駅_(大阪府)/?q[]=x.| |["(class)[de] "A def[inition]" (title)":../uri?q[x]=123#fr]| expect: |
abc
abc
abc
abc
abc def
abc def[inition]
“福島駅”.
“A def[inition]”
Array links: input: | "Array link":/search?phparray[]=test Here is "my link":http://github.com/?param[]=value with some other... In a sentence "my link":http://github.com/?param[]=value. And another "link":https://github.com/netcarver/textile?q[]=1&enc=true, you may not like! In a sentence "my link":http://github.com/?param[]=val&par2[]=val2&l=en&enc=utf-8#end. ...blah blah ^["on github":http://github.com/?param[]=val&par2[]=val2&l=en&enc=utf-8#end]^ blah... ...blah blah[^["on github":http://github.com/?param[]=val&par2[]=val2&l=en&enc=utf-8#end]^]blah... ...blah blah (for more details look on "github":http://github.com/?q[]=one,2#end) blah blah... [Here] is "a link":0, and "another link":0, to the ^["same":https://github.com/netcarver/?lang=en&q[]]^ site. [0]http://thresholdstate.com/?q[]=true expect: |

Array link

Here is my link with some other…

In a sentence my link. And another link, you may not like!

In a sentence my link.

…blah blah on github blah…

…blah blahon githubblah…

…blah blah (for more details look on github) blah blah…

[Here] is a link, and another link, to the same site.

Unicode links: input: | "Übermensch":https://de.wikipedia.org/wiki/Übermensch "$":https://de.wikipedia.org/wiki/Übermensch "福島駅":link5 this is a test -- no trailing slash. "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash":link3 "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash":https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ "福島駅":link6 this is a test -- with a trailing slash. "福島駅":http://ja.wikipedia.org/wiki/福島駅_(大阪府), what do you think? "福島駅":http://ja.wikipedia.org/wiki/福島駅_(大阪府)/?q[]=x. "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash":link4 "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash":https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ/ "Google":link1 or "secure google":link2 [link1]http://google.com [link2]https://google.com [link3]https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ [link4]https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ/ [link5]http://ja.wikipedia.org/wiki/福島駅_(大阪府) [link6]http://ja.wikipedia.org/wiki/福島駅_(大阪府)/ expect: |

Übermensch

de.wikipedia.org/wiki/Übermensch

福島駅 this is a test — no trailing slash.

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash

福島駅 this is a test — with a trailing slash.

福島駅, what do you think?

福島駅.

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash

Google or secure google

Non-whitelisted link schemes: input: | "I'm a bad link":parp://parp.com expect: |

“I’m a bad link”:parp://parp.com

Mixed XHTML and Textile Links: assert: skip notes: > Reported here... http://forum.textpattern.com/viewtopic.php?pid=157506#p157506 input: | example.org _word_ abc "example.org(_dummy)":http://example.org _word_ abc expect: |

example.org word abc

example.org word abc

Links with quoted text: notes: > Single quotes link text are fine, but double quotes break the link. Use " in this case. input: | "How free markets 'address' health care(title)":http://krugman.blogs.nytimes.com/2009/07/25/why-markets-cant-cure-healthcare/ "How free markets "address" health care(title)":http://krugman.blogs.nytimes.com/2009/07/25/why-markets-cant-cure-healthcare/ expect: |

How free markets ‘address’ health care

How free markets "address" health care

Images with links: setup: setHtmlType: xhtml input: | Here's the favicon from the TXP(Textpattern) website... !http://textpattern.com/favicon.ico(title text)!:http://textpattern.com Again, this time left aligned. !<(class#id1)http://textpattern.com/favicon.ico(title text)!:http://textpattern.com And again, to the right! !>(class#id2)http://textpattern.com/favicon.ico(title text)!:http://textpattern.com expect: |

Here’s the favicon from the TXP website… title text

Again, this time left aligned. title text

And again, to the right! title text

Link in quotes: input: | "Here's a "(class#id)link(with a title)":http://cnn.com/?a=b&c=d#end_of_page." expect: |

“Here’s a link.”

Complex links: notes: > Pulled from (or inspired by) the Redcloth link fixtures. input: | The ION coding style document found at "IONCodingStyleGuide.doc":http://perforce:8081/@md=d&cd=//&c=82E@//depot/systest/system/main/pub/doc/IONCodingStyleGuide.doc?ac=22 codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in ION. Test text "(myclass)[fr-FR]{color:red} just in case you were wondering(Title!)":http://slashdot.org/ "He said it is "very unlikely" the "economic stimulus" works":http://slashdot.org/ ""Open the pod bay doors please, HAL."":http://www.youtube.com/watch?v=npN9l2Bd06s Here is [^"[de] "A def[inition]" (title)":url^] if you can believe it! expect : |

The ION coding style document found at IONCodingStyleGuide.doc codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in ION. Test text

just in case you were wondering

He said it is “very unlikely” the “economic stimulus” works

“Open the pod bay doors please, HAL.”

Here is “A def[inition]” if you can believe it!

Restricted links: setup: setRestricted: true setLite: true setImages: false setLinkRelationShip: nofollow input: | "link text":http://example.com "link text":http://example.com. "link text":http://example.com, "link text":http://example.com? "link text":http://example.com: "link text":http://example.com:80 "link text":http://example.com; "link text":http://example.com| "link text":http://example.com* "link text":http://example.com/ "link text":http://example.com/. "link text":http://example.com/, "link text":http://example.com/? "link text":http://example.com/: "link text":http://example.com/:80 "link text":http://example.com/; "link text":http://example.com/| "link text":http://example.com/* ("link text":http://example.com) ("link text":http://example.com/) (Try "this link":http://example.com/) ("link text":http://example.com/ go go go!) "link text":/example "link text(with title)":http://example.com/ "(this is not a title)":http://example.com/ Here is "a link":0, and "another link":0 to a site. [0]http://thresholdstate.com/ Here is "a link":ts, and "another link":ts to the same site. [ts]http://thresholdstate.com/ "link text(with title)":https://example.com/ "link text(with title)":ftp://example.com/ "link text(with title)":mailto:contact@example.com "(class#id)[de-de]$(title)":http://textpattern.com "(class#id)[en-gb]{text-transform:uppercase}Try this link(Link title)":http://textile.sitemonks.com "(linkclass#linkid)[de-de]!(imgclass#imgid)imgurl(img/link text)!(Link Title)":linkurl "(myclass) (just in case you were wondering)":http://slashdot.org/ expect: |

link text

link text.

link text,

link text?

link text:

link text

link text;

link text|

link text*

link text

link text.

link text,

link text?

link text:

link text

link text;

link text|

link text*

(link text)

(link text)

(Try this link)

(link text go go go!)

link text

link text

(this is not a title)

Here is a link, and another link to a site.

Here is a link, and another link to the same site.

link text

link text

link text

textpattern.com

Try this link

!(imgclass#imgid)imgurl(img/link text)!

(just in case you were wondering)

More Restricted links: setup: setRestricted: true setLite: true setImages: false setLinkRelationShip: nofollow input: | Relative link to "$":testit.php?testfilename=textile/basic. Relative link to "$":/testit.php?testfilename=textile/basic. Relative link to "$":http://testit.php?testfilename=textile/basic. Relative link to "$":sqrl://testit.php?testfilename=textile/basic. Link to "sqrl":sqrl://testit.php?testfilename=textile/basic. expect: |

Relative link to testit.php?testfilename=textile/basic.

Relative link to /testit.php?testfilename=textile/basic.

Relative link to testit.php?testfilename=textile/basic.

Relative link to “$”:sqrl://testit.php?testfilename=textile/basic.

Link to “sqrl”:sqrl://testit.php?testfilename=textile/basic.

Unicode Links in restricted mode: setup: setRestricted: true setLite: true setImages: false setLinkRelationShip: nofollow input: | "Übermensch":https://de.wikipedia.org/wiki/Übermensch "$":https://de.wikipedia.org/wiki/Übermensch "福島駅":link5 this is a test -- no trailing slash. "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash":link3 "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash":https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ "福島駅":link6 this is a test -- with a trailing slash. "福島駅":http://ja.wikipedia.org/wiki/福島駅_(大阪府), what do you think? "福島駅":http://ja.wikipedia.org/wiki/福島駅_(大阪府)/?q[]=x. "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash":link4 "äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash":https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ/ "Google":link1 or "secure google":link2 [link1]http://google.com [link2]https://google.com [link3]https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ [link4]https://en.wikipedia.com/ä/öüÄÖÜßç/éáóúè/àòùÉÁÓÚ/ÈÀÒÙêÊôÔâÂû/ÛåÅœŒæÆøØëËïÏ/ [link5]http://ja.wikipedia.org/wiki/福島駅_(大阪府) [link6]http://ja.wikipedia.org/wiki/福島駅_(大阪府)/ expect: |

Übermensch

de.wikipedia.org/wiki/Übermensch

福島駅 this is a test — no trailing slash.

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ without trailing slash

福島駅 this is a test — with a trailing slash.

福島駅, what do you think?

福島駅.

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash

äöüÄÖÜßçéáóúèàòùÉÁÓÚÈÀÒÙêÊôÔâÂûÛåÅœŒæÆøØëËïÏ with trailing slash

Google or secure google

Unicode In title: input: | !http://lala.com/lol.gif(♡ imáges)! expect: |

♡ imáges