instiki/vendor/RedCloth-3.0.4/tests/links.yml

156 lines
6.6 KiB
YAML
Raw Normal View History

2005-01-15 21:26:54 +01:00
---
in: '"link text":#1'
out: <p><a href="#1">link text</a></p>
---
in: '"link text":#a'
out: <p><a href="#a">link text</a></p>
---
in: '"link text":#a1'
out: <p><a href="#a1">link text</a></p>
---
in: '"link text":#a10'
out: <p><a href="#a10">link text</a></p>
---
in: '"link text":index.html'
out: <p><a href="index.html">link text</a></p>
---
in: '"link text":index.html#1'
out: <p><a href="index.html#1">link text</a></p>
---
in: '"link text":index.html#a'
out: <p><a href="index.html#a">link text</a></p>
---
in: '"link text":index.html#a1'
out: <p><a href="index.html#a1">link text</a></p>
---
in: '"link text":index.html#a10'
out: <p><a href="index.html#a10">link text</a></p>
---
in: '"link text":http://example.com/'
out: <p><a href="http://example.com/">link text</a></p>
---
in: '"link text":http://example.com/#1'
out: <p><a href="http://example.com/#1">link text</a></p>
---
in: '"link text":http://example.com/#a'
out: <p><a href="http://example.com/#a">link text</a></p>
---
in: '"link text":http://example.com/#a1'
out: <p><a href="http://example.com/#a1">link text</a></p>
---
in: '"link text":http://example.com/#a10'
out: <p><a href="http://example.com/#a10">link text</a></p>
---
in: '"link text":http://example.com/index.html'
out: <p><a href="http://example.com/index.html">link text</a></p>
---
in: '"link text":http://example.com/index.html#a'
out: <p><a href="http://example.com/index.html#a">link text</a></p>
---
in: '"link text":http://example.com/index.html#1'
out: <p><a href="http://example.com/index.html#1">link text</a></p>
---
in: '"link text":http://example.com/index.html#a1'
out: <p><a href="http://example.com/index.html#a1">link text</a></p>
---
in: '"link text":http://example.com/index.html#a10'
out: <p><a href="http://example.com/index.html#a10">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar'
out: <p><a href="http://example.com/?foo=bar">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar#a'
out: <p><a href="http://example.com/?foo=bar#a">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar#1'
out: <p><a href="http://example.com/?foo=bar#1">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar#a1'
out: <p><a href="http://example.com/?foo=bar#a1">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar#a10'
out: <p><a href="http://example.com/?foo=bar#a10">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar&a=b'
out: <p><a href="http://example.com/?foo=bar&#38;a=b">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar&a=b#1'
out: <p><a href="http://example.com/?foo=bar&#38;a=b#1">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar&a=b#a'
out: <p><a href="http://example.com/?foo=bar&#38;a=b#a">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar&a=b#a1'
out: <p><a href="http://example.com/?foo=bar&#38;a=b#a1">link text</a></p>
---
in: '"link text":http://example.com/?foo=bar&a=b#a10'
out: <p><a href="http://example.com/?foo=bar&#38;a=b#a10">link text</a></p>
---
in: 'This is a "link":http://example.com/'
out: <p>This is a <a href="http://example.com/">link</a></p>
---
in: 'This is a "link":http://example.com/.'
out: <p>This is a <a href="http://example.com/">link</a>.</p>
---
in: 'This is a "link":http://example.com/index.html.'
out: <p>This is a <a href="http://example.com/index.html">link</a>.</p>
---
in: 'This is a "link":http://example.com/index.html#a.'
out: <p>This is a <a href="http://example.com/index.html#a">link</a>.</p>
---
in: 'This is a "link":http://example.com/index.html#1.'
out: <p>This is a <a href="http://example.com/index.html#1">link</a>.</p>
---
in: 'This is a "link":http://example.com/index.html#a1.'
out: <p>This is a <a href="http://example.com/index.html#a1">link</a>.</p>
---
in: 'This is a "link":http://example.com/index.html#a10.'
out: <p>This is a <a href="http://example.com/index.html#a10">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar.'
out: <p>This is a <a href="http://example.com/?foo=bar">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar#1.'
out: <p>This is a <a href="http://example.com/?foo=bar#1">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar#a.'
out: <p>This is a <a href="http://example.com/?foo=bar#a">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar#a1.'
out: <p>This is a <a href="http://example.com/?foo=bar#a1">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar#a10.'
out: <p>This is a <a href="http://example.com/?foo=bar#a10">link</a>.</p>
---
in: 'This is a "link":http://example.com/?foo=bar#a10, but this is not.'
out: <p>This is a <a href="http://example.com/?foo=bar#a10">link</a>, but this is not.</p>
---
in: '(This is a "link":http://example.com/?foo=bar#a10) but this is not.'
out: <p>(This is a <a href="http://example.com/?foo=bar#a10">link</a>) but this is not.</p>
---
in: '"link text(link title)":http://example.com/'
out: <p><a href="http://example.com/" title="link title">link text</a></p>
# ---
# in: '"link text(link title) ":http://example.com/'
# out: <p>&#8220;link text(link title) &#8220;:http://example.com/</p>
# comments: this is a real test and should pass
---
in: '"(link) text(link title)":http://example.com/'
out: <p><a href="http://example.com/" class="link" title="link title"> text</a></p>
comments: link text can not contain parentheses
---
in: '"Dive Into XML":http://www.xml.com/pub/au/164'
out: <p><a href="http://www.xml.com/pub/au/164">Dive Into <span class="caps">XML</span></a></p>
---
in: '"Lab Exercises":../lab/exercises/exercises.html.'
out: <p><a href="../lab/exercises/exercises.html">Lab Exercises</a>.</p>
---
in: 'Go to "discuss":http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&thread=26627 to discuss.'
out: <p>Go to <a href="http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&#38;thread=26627">discuss</a> to discuss.</p>
---
in: '* "rubylang":http://www.ruby-lang.org/en/'
out: "<ul>\n\t<li><a href=\"http://www.ruby-lang.org/en/\">rubylang</a></li>\n\t</ul>"
2005-02-11 00:11:47 +01:00
---
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'
out: <p>The <span class="caps">ION</span> coding style document found at <a href="http://perforce:8081/@md=d&#38;cd=//&#38;c=82E@//depot/systest/system/main/pub/doc/IONCodingStyleGuide.doc?ac=22">IONCodingStyleGuide.doc</a> codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in <span class="caps">ION</span>. Test text</p>