--- in: '"link text":#1' html:

link text

--- in: '"link text":#a' html:

link text

--- in: '"link text":#a1' html:

link text

--- in: '"link text":#a10' html:

link text

--- in: '"link text":index.html' html:

link text

--- in: '"link text":index.html#1' html:

link text

--- in: '"link text":index.html#a' html:

link text

--- in: '"link text":index.html#a1' html:

link text

--- in: '"link text":index.html#a10' html:

link text

--- in: '"link text":http://example.com/' html:

link text

--- in: '"link text":http://example.com/#1' html:

link text

--- in: '"link text":http://example.com/#a' html:

link text

--- in: '"link text":http://example.com/#a1' html:

link text

--- in: '"link text":http://example.com/#a10' html:

link text

--- in: '"link text":http://example.com/index.html' html:

link text

--- in: '"link text":http://example.com/index.html#a' html:

link text

--- in: '"link text":http://example.com/index.html#1' html:

link text

--- in: '"link text":http://example.com/index.html#a1' html:

link text

--- in: '"link text":http://example.com/index.html#a10' html:

link text

--- in: '"link text":http://example.com/?foo=bar' html:

link text

--- in: '"link text":http://example.com/?foo=bar#a' html:

link text

--- in: '"link & text":http://example.com/?foo=bar#a' html:

link & text

--- in: '"link text":http://example.com/?foo=bar#1' html:

link text

--- in: '"link text":http://example.com/?foo=bar#a1' html:

link text

--- in: '"link text":http://example.com/?foo=bar#a10' html:

link text

--- in: '"link text":http://example.com/?foo=bar&a=b' html:

link text

--- in: '"link text":http://example.com/?foo=bar&a=b#1' html:

link text

--- in: '"link text":http://example.com/?foo=bar&a=b#a' html:

link text

--- in: '"link text":http://example.com/?foo=bar&a=b#a1' html:

link text

--- in: '"link text":http://example.com/?foo=bar&a=b#a10' html:

link text

--- in: 'This is a "link":http://example.com/' html:

This is a link

--- in: 'This is a "link":http://example.com/.' html:

This is a link.

--- in: 'This is a "link":http://example.com/index.html.' html:

This is a link.

--- in: 'This is a "link":http://example.com/index.html#a.' html:

This is a link.

--- in: 'This is a "link":http://example.com/index.html#1.' html:

This is a link.

--- in: 'This is a "link":http://example.com/index.html#a1.' html:

This is a link.

--- in: 'This is a "link":http://example.com/index.html#a10.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar#1.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar#a.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar#a1.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar#a10.' html:

This is a link.

--- in: 'This is a "link":http://example.com/?foo=bar#a10, but this is not.' html:

This is a link, but this is not.

--- in: '(This is a "link":http://example.com/?foo=bar#a10) but this is not.' html:

(This is a link) but this is not.

--- in: '"link text(link title)":http://example.com/' html:

link text

# --- # in: '"link text(link title) ":http://example.com/' # html:

“link text(link title) “:http://example.com/

# comments: this is a real test and should pass --- name: link with title attribute in: '"(link) text(link title)":http://example.com/' html:

text

comments: link text can not contain parentheses --- name: link with space between link text and title attribute in: '"text (link title)":http://example.com/' html:

text

--- in: '"Dive Into XML":http://www.xml.com/pub/au/164' html:

Dive Into XML

--- in: '"Lab Exercises":../lab/exercises/exercises.html.' html:

Lab Exercises.

--- in: 'Go to "discuss":http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&thread=26627 to discuss.' html:

Go to discuss to discuss.

--- in: '* "rubylang":http://www.ruby-lang.org/en/' html: "" --- in: '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' html:

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

--- in: '"testing":' html: "

“testing”:

" --- name: trailing space not absorbed by link in: '"Link":/foo.html me' html: "

Link me

" --- name: trailing comma stays outside link in: '"Link":/foo.html, me' html: "

Link, me

" --- name: trailing exclamation stays outside link in: '"Link":/foo.html! me' html: "

Link! me

" --- name: trailing semicolon stays outside link in: '"Link":/foo.html; me' html: "

Link; me

" --- name: trailing period stays outside link in: '"Link":/foo.html.' html: "

Link.

" --- name: parenthetical statement as a link in: '"(just in case you were wondering)":http://slashdot.org/' html: '

(just in case you were wondering)

' --- name: link containing parentheses in: '"It is (very) fortunate that this works":http://slashdot.org/' html: '

It is (very) fortunate that this works

' --- name: link containing quotes in: '"He said it is "very unlikely" this works":http://slashdot.org/' html: '

He said it is “very unlikely” this works

' --- name: link containing multiple quotes in: '"He said it is "very unlikely" the "economic stimulus" works":http://slashdot.org/' html: '

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

' --- name: linked quoted phrase in: '""Open the pod bay doors please, HAL."":http://www.youtube.com/watch?v=npN9l2Bd06s' html: '

“Open the pod bay doors please, HAL.”

' --- name: link following quoted phrase in: '"quote" text "quote" text "link":http://google.com' html: '

“quote” text “quote” text link

' --- name: links containing underscores in: 'This is a link to a "Wikipedia article about Barack":http://en.wikipedia.org/wiki/Barack_Obama' html: '

This is a link to a Wikipedia article about Barack

' --- name: links containing parentheses in: 'This is a link to a ["Wikipedia article about Textile":http://en.wikipedia.org/wiki/Textile_(markup_language)]' html: '

This is a link to a Wikipedia article about Textile

' --- name: links contained in parentheses in: 'This is a regular link (but in parentheses: "Google":http://www.google.com)' html: '

This is a regular link (but in parentheses: Google)

' --- name: links containing parentheses without brackets in: 'This is a link to a "Wikipedia article about Textile":http://en.wikipedia.org/wiki/Textile_(markup_language)' html: '

This is a link to a Wikipedia article about Textile

' --- name: links containing parentheses period at end without brackets in: 'This is a link to a "Wikipedia article about Textile":http://en.wikipedia.org/wiki/Textile_(markup_language).' html: '

This is a link to a Wikipedia article about Textile.

' --- name: broken links containing parentheses without brackets in: 'This is a link to a "Wikipedia article about Textile":http://en.wikipedia.org/wiki/Textile_(markup_language' html: '

This is a link to a Wikipedia article about Textile

' --- name: links containing parentheses without brackets inside a parenthesis in: 'Textile is awesome! (Check out the "Wikipedia article about Textile":http://en.wikipedia.org/wiki/Textile_(markup_language))' html: '

Textile is awesome! (Check out the Wikipedia article about Textile)

' --- name: quotes and follow link in: 'Some "text" followed by a "link":http://redcloth.org.' html: '

Some “text” followed by a link.

' lite_mode_html: 'Some “text” followed by a link.' --- name: link alias containing dashes in: |- "link":google-rocks [google-rocks]http://google.com html: |-

link

--- name: contained in multi-paragraph quotes in: |- "I first learned about "Redcloth":http://redcloth.org/ several years ago. "It's wonderful." html: |-

“I first learned about Redcloth several years ago.

“It’s wonderful.”

--- name: as html in notextile contained in multi-paragraph quotes in: |- "Here is a link. "I like links." html: |-

“Here is a link.

“I like links.”

--- name: contained in para with multiple quotes in: |- "My wife, Tipper, and I will donate 100% of the proceeds of the award to the "Alliance For Climate Protection":http://www.looktothestars.org/charity/638-alliance-for-climate-protection," said Gore in an email. "I am deeply honored to receive the Nobel Peace Prize." html: |-

“My wife, Tipper, and I will donate 100% of the proceeds of the award to the Alliance For Climate Protection,” said Gore in an email. “I am deeply honored to receive the Nobel Peace Prize.”