Upgraded RedCloth to 3.0.3
This commit is contained in:
parent
2aa1aa8fad
commit
bb2d16c8a1
27 changed files with 1844 additions and 1092 deletions
105
vendor/RedCloth-3.0.3/tests/code.yml
vendored
Normal file
105
vendor/RedCloth-3.0.3/tests/code.yml
vendored
Normal file
|
@ -0,0 +1,105 @@
|
|||
---
|
||||
in: 'This is an empty dictionary: @{}@'
|
||||
out: '<p>This is an empty dictionary: <code>{}</code></p>'
|
||||
---
|
||||
in: |-
|
||||
Testing nested pre tags...
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
Good code here.
|
||||
|
||||
<pre>
|
||||
a = 1
|
||||
</pre>
|
||||
|
||||
Bad code here.
|
||||
|
||||
<script language="JavaScript">
|
||||
window.open( "about:blank" );
|
||||
</script>
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
out: |-
|
||||
<p>Testing nested pre tags…</p>
|
||||
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
Good code here.
|
||||
|
||||
<pre>
|
||||
a = 1
|
||||
</pre>
|
||||
|
||||
Bad code here.
|
||||
|
||||
<script language="JavaScript">
|
||||
window.open( "about:blank" );
|
||||
</script>
|
||||
</code>
|
||||
</pre>
|
||||
---
|
||||
in: |-
|
||||
<pre>
|
||||
*** test
|
||||
</pre>
|
||||
out: |-
|
||||
<pre>
|
||||
*** test
|
||||
</pre>
|
||||
---
|
||||
in: |-
|
||||
<notextile>
|
||||
*** test
|
||||
</notextile>
|
||||
out: |-
|
||||
*** test
|
||||
---
|
||||
in: '*this <span></span> is strong*'
|
||||
out: '<p><strong>this <span></span> is strong</strong></p>'
|
||||
---
|
||||
in: '*this <span>test</span> is strong*'
|
||||
out: '<p><strong>this <span>test</span> is strong</strong></p>'
|
||||
---
|
||||
in: <pre class="code"> __inline__</pre>
|
||||
out: <pre class="code"> __inline__</pre>
|
||||
---
|
||||
in: |-
|
||||
* @foo@
|
||||
* @bar@
|
||||
* and @x@ is also.
|
||||
out: "<ul>\n\t<li><code>foo</code></li>\n\t\t<li><code>bar</code></li>\n\t\t<li>and <code>x</code> is also.</li>\n\t</ul>"
|
||||
---
|
||||
in: |-
|
||||
<pre class="code"> <hello> </pre>
|
||||
<pre class="code"> <hello> </pre>
|
||||
out: |-
|
||||
<pre class="code"> <hello> </pre>
|
||||
<pre class="code"> <hello> </pre>
|
||||
---
|
||||
in: |
|
||||
Test of Markdown-style indented code.
|
||||
|
||||
a = [1, 2, 3]
|
||||
a.each do |x|
|
||||
puts "test number", x,
|
||||
"and more!"
|
||||
end
|
||||
|
||||
Paragraph 2.
|
||||
|
||||
Paragraph 3.
|
||||
out: |-
|
||||
<p>Test of Markdown-style indented code.</p>
|
||||
|
||||
<pre><code>a = [1, 2, 3]
|
||||
a.each do |x|
|
||||
puts "test number", x,
|
||||
"and more!"
|
||||
end</code></pre>
|
||||
|
||||
<p>Paragraph 2.</p>
|
||||
|
||||
<p>Paragraph 3.</p>
|
171
vendor/RedCloth-3.0.3/tests/images.yml
vendored
Normal file
171
vendor/RedCloth-3.0.3/tests/images.yml
vendored
Normal file
|
@ -0,0 +1,171 @@
|
|||
---
|
||||
in: This is an !image.jpg!
|
||||
out: <p>This is an <img src="image.jpg" alt="" /></p>
|
||||
---
|
||||
in: This is an !image.jpg(with alt text)!
|
||||
out: <p>This is an <img src="image.jpg" title="with alt text" alt="with alt text" /></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!
|
||||
out: <p>This is an <img src="http://example.com/i/image.jpg" alt="" /></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg#a1!
|
||||
out: <p>This is an <img src="http://example.com/i/image.jpg#a1" alt="" /></p>
|
||||
---
|
||||
in: This is an !image.jpg!.
|
||||
out: <p>This is an <img src="image.jpg" alt="" />.</p>
|
||||
---
|
||||
in: This is an !image.jpg(with alt text)!.
|
||||
out: <p>This is an <img src="image.jpg" title="with alt text" alt="with alt text" />.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!.
|
||||
out: <p>This is an <img src="http://example.com/i/image.jpg" alt="" />.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg#a1!.
|
||||
out: <p>This is an <img src="http://example.com/i/image.jpg#a1" alt="" />.</p>
|
||||
---
|
||||
in: This is not an image!!!
|
||||
out: <p>This is not an image!!!</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:#1
|
||||
out: <p>This is an <a href="#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:#a
|
||||
out: <p>This is an <a href="#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:#a1
|
||||
out: <p>This is an <a href="#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:#a10
|
||||
out: <p>This is an <a href="#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html
|
||||
out: <p>This is an <a href="index.html"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html#1
|
||||
out: <p>This is an <a href="index.html#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html#a1
|
||||
out: <p>This is an <a href="index.html#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html#a10
|
||||
out: <p>This is an <a href="index.html#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar
|
||||
out: <p>This is an <a href="index.html?foo=bar"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#1
|
||||
out: <p>This is an <a href="index.html?foo=bar#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a
|
||||
out: <p>This is an <a href="index.html?foo=bar#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a1
|
||||
out: <p>This is an <a href="index.html?foo=bar#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a10
|
||||
out: <p>This is an <a href="index.html?foo=bar#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/
|
||||
out: <p>This is an <a href="http://example.com/"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/#1
|
||||
out: <p>This is an <a href="http://example.com/#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/#a
|
||||
out: <p>This is an <a href="http://example.com/#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/#a1
|
||||
out: <p>This is an <a href="http://example.com/#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/#a10
|
||||
out: <p>This is an <a href="http://example.com/#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html
|
||||
out: <p>This is an <a href="http://example.com/index.html"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#1
|
||||
out: <p>This is an <a href="http://example.com/index.html#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a
|
||||
out: <p>This is an <a href="http://example.com/index.html#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a1
|
||||
out: <p>This is an <a href="http://example.com/index.html#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a10
|
||||
out: <p>This is an <a href="http://example.com/index.html#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#1
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a1
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a10
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b, but this is not.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1, but this is not.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a, but this is not.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
|
||||
---
|
||||
in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1, but this is not.
|
||||
out: <p>This is an <a href="http://example.com/index.html?foo=bar&a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
||||
---
|
||||
in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not.
|
||||
out: <p>(This is an <a href="http://example.com/index.html?foo=bar&a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
|
39
vendor/RedCloth-3.0.3/tests/instiki.yml
vendored
Normal file
39
vendor/RedCloth-3.0.3/tests/instiki.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
--- # Bugs filed at http://www.instiki.org/show/BugReports
|
||||
in: |-
|
||||
_Hi, <span class="newWikiWord">Joe Bob<a href="../show/JoeBob">?</a></span>, this should all be in italic!_
|
||||
out: |-
|
||||
<p><em>Hi, <span class="newWikiWord">Joe Bob<a href="../show/JoeBob">?</a></span>, this should all be in italic!</em></p>
|
||||
---
|
||||
in: '*this <span>span</span> is strong*'
|
||||
out: '<p><strong>this <span>span</span> is strong</strong></p>'
|
||||
---
|
||||
in: '*this <span>Camel Thing<a href="../show/CamelThing">?</a></span> is strong*'
|
||||
out: '<p><strong>this <span>Camel Thing<a href="../show/CamelThing">?</a></span> is strong</strong></p>'
|
||||
---
|
||||
in: '_this <span>span</span> is italic_'
|
||||
out: '<p><em>this <span>span</span> is italic</em></p>'
|
||||
---
|
||||
in: '%{color:red}nested span because of <span><span class="newWikiWord">Camel Word<a href="../show/CamelWord">?</a></span></span>%'
|
||||
out: '<p><span style="color:red;">nested span because of <span><span class="newWikiWord">Camel Word<a href="../show/CamelWord">?</a></span></span></span></p>'
|
||||
---
|
||||
in: |-
|
||||
h2. Version History
|
||||
|
||||
* "Version
|
||||
0.0":http://www.threewordslong.com/render-0-8-9b.patch - Early version using MD5 hashes.
|
||||
* "Version
|
||||
0.1":http://www.threewordslong.com/chunk-0-1.patch.gz - First cut of new system. Much cleaner.
|
||||
* "Version 0.2":http://www.threewordslong.com/chunk-0-2.patch.gz - Fixed problem with "authors" page and some tests.
|
||||
out: |-
|
||||
<h2>Version History</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://www.threewordslong.com/render-0-8-9b.patch">Version
|
||||
0.0</a> – Early version using <span class="caps">MD5</span> hashes.</li>
|
||||
<li><a href="http://www.threewordslong.com/chunk-0-1.patch.gz">Version
|
||||
0.1</a> – First cut of new system. Much cleaner.</li>
|
||||
<li><a href="http://www.threewordslong.com/chunk-0-2.patch.gz">Version 0.2</a> – Fixed problem with “authors” page and some tests.</li>
|
||||
</ul>
|
||||
---
|
||||
in: "--richSeymour --whyTheLuckyStiff"
|
||||
out: "<p>—richSeymour—whyTheLuckyStiff</p>"
|
155
vendor/RedCloth-3.0.3/tests/links.yml
vendored
Normal file
155
vendor/RedCloth-3.0.3/tests/links.yml
vendored
Normal file
|
@ -0,0 +1,155 @@
|
|||
---
|
||||
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&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&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&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&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&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>“link text(link title) “: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&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>"
|
||||
---
|
||||
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&cd=//&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>
|
77
vendor/RedCloth-3.0.3/tests/lists.yml
vendored
Normal file
77
vendor/RedCloth-3.0.3/tests/lists.yml
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
--- # Bret Pettichord, Thanks.
|
||||
in: |-
|
||||
* first line
|
||||
* second
|
||||
line
|
||||
* third line
|
||||
out: |-
|
||||
<ul>
|
||||
<li>first line</li>
|
||||
<li>second
|
||||
line</li>
|
||||
<li>third line</li>
|
||||
</ul>
|
||||
---
|
||||
in: |-
|
||||
p. start
|
||||
|
||||
* one
|
||||
and one
|
||||
* two
|
||||
and two
|
||||
* three
|
||||
|
||||
p. end
|
||||
out: |-
|
||||
<p>start</p>
|
||||
<ul>
|
||||
<li>one
|
||||
and one</li>
|
||||
<li>two
|
||||
and two</li>
|
||||
<li>three</li>
|
||||
</ul>
|
||||
|
||||
<p>end</p>
|
||||
---
|
||||
in: |-
|
||||
Funky:
|
||||
|
||||
* Testing
|
||||
*# number
|
||||
*##* bullet
|
||||
*# number
|
||||
*# number
|
||||
yeah number
|
||||
#* bullet
|
||||
*** okay
|
||||
****# what
|
||||
|
||||
|
||||
out: |-
|
||||
<p>Funky:</p>
|
||||
<ul>
|
||||
<li>Testing
|
||||
<ol>
|
||||
<li>number
|
||||
<ul>
|
||||
<li>bullet</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>number</li>
|
||||
<li>number
|
||||
yeah number</li>
|
||||
<ul>
|
||||
<li>bullet
|
||||
<ul>
|
||||
<li>okay
|
||||
<ol>
|
||||
<li>what</li>
|
||||
</ul></li>
|
||||
</ol></li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ol>
|
||||
---
|
||||
in: "* command run: @time ruby run-tests.rb > toto@"
|
||||
out: "<ul>\n\t<li>command run: <code>time ruby run-tests.rb > toto</code></li>\n\t</ul>"
|
218
vendor/RedCloth-3.0.3/tests/markdown.yml
vendored
Normal file
218
vendor/RedCloth-3.0.3/tests/markdown.yml
vendored
Normal file
|
@ -0,0 +1,218 @@
|
|||
in: |
|
||||
This is a regular paragraph.
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Foo</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
This is another regular paragraph.
|
||||
out: |-
|
||||
<p>This is a regular paragraph.</p>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Foo</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>This is another regular paragraph.</p>
|
||||
---
|
||||
in: '"Larry Bird":http://images.google.com/images?num=30&q=larry+bird'
|
||||
out: '<p>"Larry Bird":http://images.google.com/images?num=30&q=larry+bird</p>'
|
||||
---
|
||||
in: '©'
|
||||
out: <p>©</p>
|
||||
---
|
||||
in: AT&T
|
||||
out: <p>AT&T</p>
|
||||
|
||||
# We don't do this.
|
||||
# ---
|
||||
# in: 4 < 5
|
||||
# out: 4 < 5
|
||||
---
|
||||
in: |
|
||||
This is an H1
|
||||
=============
|
||||
|
||||
This is an H2
|
||||
-------------
|
||||
out: |-
|
||||
<h1>This is an H1</h1>
|
||||
|
||||
<h2>This is an H2</h2>
|
||||
---
|
||||
in: |
|
||||
# This is an H1
|
||||
|
||||
## This is an H2
|
||||
|
||||
###### This is an H6
|
||||
out: |-
|
||||
<h1>This is an H1</h1>
|
||||
|
||||
<h2>This is an H2</h2>
|
||||
|
||||
<h6>This is an H6</h6>
|
||||
---
|
||||
in: |
|
||||
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
||||
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
||||
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
||||
>
|
||||
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
||||
> id sem consectetuer libero luctus adipiscing.
|
||||
out: |-
|
||||
<blockquote>
|
||||
<p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
||||
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
||||
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
|
||||
|
||||
<p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
||||
id sem consectetuer libero luctus adipiscing.</p>
|
||||
|
||||
</blockquote>
|
||||
---
|
||||
in: |
|
||||
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
||||
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
||||
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
||||
>
|
||||
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
||||
id sem consectetuer libero luctus adipiscing.
|
||||
out: |-
|
||||
<blockquote>
|
||||
<p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
||||
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
||||
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
|
||||
|
||||
<p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
||||
id sem consectetuer libero luctus adipiscing.</p>
|
||||
|
||||
</blockquote>
|
||||
---
|
||||
in: |
|
||||
> This is the first level of quoting.
|
||||
>
|
||||
> > This is nested blockquote.
|
||||
>
|
||||
> Back to the first level.
|
||||
out: |-
|
||||
<blockquote>
|
||||
<p>This is the first level of quoting.</p>
|
||||
<blockquote>
|
||||
<p>This is nested blockquote.</p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
|
||||
|
||||
<p>Back to the first level.</p>
|
||||
|
||||
</blockquote>
|
||||
---
|
||||
in: |
|
||||
> ## This is a header.
|
||||
>
|
||||
> 1. This is the first list item.
|
||||
> 2. This is the second list item.
|
||||
>
|
||||
> Here's some example code:
|
||||
>
|
||||
> return shell_exec("echo $input | $markdown_script");
|
||||
out: |-
|
||||
<blockquote>
|
||||
<h2>This is a header.</h2>
|
||||
|
||||
|
||||
|
||||
<p>1. This is the first list item.
|
||||
2. This is the second list item.</p>
|
||||
|
||||
<p>Here's some example code:</p>
|
||||
<pre><code>return shell_exec("echo $input | $markdown_script");</code></pre>
|
||||
|
||||
</blockquote>
|
||||
---
|
||||
in: |
|
||||
* * *
|
||||
|
||||
***
|
||||
|
||||
*****
|
||||
|
||||
- - -
|
||||
|
||||
---------------------------------------
|
||||
|
||||
_ _ _
|
||||
out: |-
|
||||
<hr />
|
||||
|
||||
<hr />
|
||||
|
||||
<hr />
|
||||
|
||||
<hr />
|
||||
|
||||
<hr />
|
||||
|
||||
<hr />
|
||||
---
|
||||
in: |
|
||||
This is [an example](http://example.com/ "Title") inline link.
|
||||
|
||||
[This link](http://example.net/) has no title attribute.
|
||||
out: |-
|
||||
<p>This is <a href="http://example.com/" title="Title">an example</a> inline link.</p>
|
||||
|
||||
<p><a href="http://example.net/">This link</a> has no title attribute.</p>
|
||||
---
|
||||
in: See my [About](/about/) page for details.
|
||||
out: <p>See my <a href="/about/">About</a> page for details.</p>
|
||||
---
|
||||
in: |
|
||||
This is [an example][id] reference-style link.
|
||||
|
||||
This is [an example] [id] reference-style link.
|
||||
|
||||
[id]: http://example.com/ "Optional Title Here"
|
||||
out: |-
|
||||
<p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
|
||||
|
||||
<p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
|
||||
---
|
||||
in: |
|
||||
[Google][]
|
||||
[Google]: http://google.com/
|
||||
out: <p><a href="http://google.com/">Google</a></p>
|
||||
---
|
||||
in: |
|
||||
Visit [Daring Fireball][] for more information.
|
||||
[Daring Fireball]: http://daringfireball.net/
|
||||
out: <p>Visit <a href="http://daringfireball.net/">Daring Fireball</a> for more information.</p>
|
||||
---
|
||||
in: |
|
||||
I get 10 times more traffic from [Google] [1] than from
|
||||
[Yahoo] [2] or [MSN] [3].
|
||||
|
||||
[1]: http://google.com/ "Google"
|
||||
[2]: http://search.yahoo.com/ "Yahoo Search"
|
||||
[3]: http://search.msn.com/ "MSN Search"
|
||||
|
||||
out: |-
|
||||
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
|
||||
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
|
||||
---
|
||||
in: |
|
||||
I get 10 times more traffic from [Google][] than from
|
||||
[Yahoo][] or [MSN][].
|
||||
|
||||
[google]: http://google.com/ "Google"
|
||||
[yahoo]: http://search.yahoo.com/ "Yahoo Search"
|
||||
[msn]: http://search.msn.com/ "MSN Search"
|
||||
out: |-
|
||||
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
|
||||
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
|
64
vendor/RedCloth-3.0.3/tests/poignant.yml
vendored
Normal file
64
vendor/RedCloth-3.0.3/tests/poignant.yml
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
--- # Tests from the (Poignant Guide)
|
||||
in: >
|
||||
h3. False
|
||||
|
||||
|
||||
!<i/blix-neg.gif(Shape of a cat.)!
|
||||
|
||||
|
||||
_The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid
|
||||
eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button._
|
||||
|
||||
|
||||
The darkness surrounding Blix can be called *negative space*. Hang on to that phrase.
|
||||
Let it suggest that the emptiness has a negative connotation. In a similar way,
|
||||
@nil@ has a slightly sour note that it whistles.
|
||||
|
||||
|
||||
Generally speaking, everything in Ruby has a positive charge to it. This spark
|
||||
flows through strings, numbers, regexps, all of it. Only two keywords wear a
|
||||
shady cloak: @nil@ and @false@ draggin us down.
|
||||
|
||||
|
||||
You can test that charge with an @if@ keyword. It looks very much like the
|
||||
@do@ blocks we saw in the last chapter, in that both end with an @end@.
|
||||
|
||||
|
||||
<pre>
|
||||
if plastic_cup
|
||||
print "Plastic cup is on the up 'n' up!"
|
||||
end
|
||||
</pre>
|
||||
|
||||
|
||||
If @plastic_cup@ contains either @nil@ or @false@, you won't see anything print
|
||||
to the screen. They're not on the @if@ guest list. So @if@ isn't going to run
|
||||
any of the code it's protecting.
|
||||
|
||||
|
||||
But @nil@ and @false@ need not walk away in shame. They may be of questionable
|
||||
character, but @unless@ runs a smaller establishment that caters to the bedraggled.
|
||||
The @unless@ keyword has a policy of only allowing those with a negative charge in.
|
||||
Who are: @nil@ and @false@.
|
||||
|
||||
|
||||
<pre>
|
||||
unless plastic_cup
|
||||
print "Plastic cup is on the down low."
|
||||
end
|
||||
</pre>
|
||||
|
||||
|
||||
You can also use @if@ and @unless@ at the end of a single line of code, if that's
|
||||
all that is being protected.
|
||||
|
||||
|
||||
<pre>
|
||||
print "Yeah, plastic cup is up again!" if plastic_cup
|
||||
print "Hardly. It's down." unless plastic_cup
|
||||
</pre>
|
||||
|
||||
|
||||
Now that you've met @false@, I'm sure you can see what's on next.
|
||||
|
||||
out: "<h3>False</h3>\n\n\t<p style=\"float:left\"><img src=\"i/blix-neg.gif\" title=\"Shape of a cat.\" alt=\"Shape of a cat.\" /></p>\n\n\t<p><em>The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button.</em></p>\n\n\t<p>The darkness surrounding Blix can be called <strong>negative space</strong>. Hang on to that phrase. Let it suggest that the emptiness has a negative connotation. In a similar way, <code>nil</code> has a slightly sour note that it whistles.</p>\n\n\t<p>Generally speaking, everything in Ruby has a positive charge to it. This spark flows through strings, numbers, regexps, all of it. Only two keywords wear a shady cloak: <code>nil</code> and <code>false</code> draggin us down.</p>\n\n\t<p>You can test that charge with an <code>if</code> keyword. It looks very much like the <code>do</code> blocks we saw in the last chapter, in that both end with an <code>end</code>.</p>\n\n\n<pre>\n if plastic_cup\n print \"Plastic cup is on the up 'n' up!\" \n end\n</pre>\n\t<p>If <code>plastic_cup</code> contains either <code>nil</code> or <code>false</code>, you won’t see anything print to the screen. They’re not on the <code>if</code> guest list. So <code>if</code> isn’t going to run any of the code it’s protecting.</p>\n\n\t<p>But <code>nil</code> and <code>false</code> need not walk away in shame. They may be of questionable character, but <code>unless</code> runs a smaller establishment that caters to the bedraggled. The <code>unless</code> keyword has a policy of only allowing those with a negative charge in. Who are: <code>nil</code> and <code>false</code>.</p>\n\n\n<pre>\n unless plastic_cup\n print \"Plastic cup is on the down low.\" \n end\n</pre>\n\t<p>You can also use <code>if</code> and <code>unless</code> at the end of a single line of code, if that’s all that is being protected.</p>\n\n\n<pre>\n print \"Yeah, plastic cup is up again!\" if plastic_cup\n print \"Hardly. It's down.\" unless plastic_cup\n</pre>\n\t<p>Now that you’ve met <code>false</code>, I’m sure you can see what’s on next.</p>"
|
198
vendor/RedCloth-3.0.3/tests/table.yml
vendored
Normal file
198
vendor/RedCloth-3.0.3/tests/table.yml
vendored
Normal file
|
@ -0,0 +1,198 @@
|
|||
in: |
|
||||
{background:#ddd}. |S|Target|Complete|App|Milestone|
|
||||
|!/i/g.gif!|11/18/04|11/18/04|070|XML spec complete|
|
||||
|!/i/g.gif!|11/29/04|11/29/04|011|XML spec complete (KH is on schedule)|
|
||||
|!/i/g.gif!|11/29/04|11/29/04|051|XML spec complete (KH is on schedule)|
|
||||
|!/i/g.gif!|11/29/04|11/29/04|081|XML spec complete (KH is on schedule)|
|
||||
|!/i/g.gif!|11/19/04|11/22/04|070|Preprocessor complete|
|
||||
|!/i/g.gif!|11/22/04|11/22/04|070|Dialog pass 1 builds an index file|
|
||||
|!/i/g.gif!|11/24/04|11/24/04|070|Dialog pass 2 98% complete|
|
||||
|!/i/g.gif!|11/30/04|11/30/04|070|Feature complete. Passes end-to-end smoke test.|
|
||||
|!/i/g.gif!|11/30/04|11/30/04|011|Preprocessor updates complete|
|
||||
|!/i/g.gif!|11/30/04|11/30/04|051|Preprocessor updates complete|
|
||||
|!/i/g.gif!|11/30/04|11/29/04|081|Preprocessor updates complete|
|
||||
|!/i/w.gif!|12/02/04|.|011|Dialog pass 1 and 2 complete (98+%)|
|
||||
|!/i/w.gif!|12/02/04|.|051|Dialog pass 1 and 2 complete (98+%)|
|
||||
|!/i/w.gif!|12/02/04|.|081|Dialog pass 1 and 2 complete (98+%)|
|
||||
|!/i/w.gif!|12/03/04|.|011|Feature complete|
|
||||
|!/i/w.gif!|12/03/04|.|051|Feature complete|
|
||||
|!/i/w.gif!|12/03/04|.|081|Feature complete|
|
||||
|!/i/w.gif!|12/10/04|.|011|Deployed to Napa test workstation. Passes smoke test.|
|
||||
|!/i/w.gif!|12/10/04|.|051|Deployed to Napa test workstation. Passes smoke test.|
|
||||
|!/i/w.gif!|12/10/04|.|081|Deployed to Napa test workstation. Passes smoke test.|
|
||||
|!/i/w.gif!|12/10/04|.|070|Deployed to Napa test workstation. Passes smoke test.|
|
||||
|!/i/w.gif!|12/17/04|.|011|System testing complete. Begin testing with live customer data.|
|
||||
|!/i/w.gif!|12/17/04|.|051|System testing complete. Begin testing with live customer data.|
|
||||
|!/i/w.gif!|12/17/04|.|081|System testing complete. Begin testing with live customer data.|
|
||||
|!/i/w.gif!|12/17/04|.|070|System testing complete. Begin testing with live customer data.|
|
||||
out: |-
|
||||
<table>
|
||||
<tr style="background:#ddd;">
|
||||
<td>S</td>
|
||||
<td>Target</td>
|
||||
<td>Complete</td>
|
||||
<td>App</td>
|
||||
<td>Milestone</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/18/04</td>
|
||||
<td>11/18/04</td>
|
||||
<td>070</td>
|
||||
<td>XML spec complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/29/04</td>
|
||||
<td>11/29/04</td>
|
||||
<td>011</td>
|
||||
<td>XML spec complete (KH is on schedule)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/29/04</td>
|
||||
<td>11/29/04</td>
|
||||
<td>051</td>
|
||||
<td>XML spec complete (KH is on schedule)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/29/04</td>
|
||||
<td>11/29/04</td>
|
||||
<td>081</td>
|
||||
<td>XML spec complete (KH is on schedule)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/19/04</td>
|
||||
<td>11/22/04</td>
|
||||
<td>070</td>
|
||||
<td>Preprocessor complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/22/04</td>
|
||||
<td>11/22/04</td>
|
||||
<td>070</td>
|
||||
<td>Dialog pass 1 builds an index file</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/24/04</td>
|
||||
<td>11/24/04</td>
|
||||
<td>070</td>
|
||||
<td>Dialog pass 2 98% complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/30/04</td>
|
||||
<td>11/30/04</td>
|
||||
<td>070</td>
|
||||
<td>Feature complete. Passes end-to-end smoke test.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/30/04</td>
|
||||
<td>11/30/04</td>
|
||||
<td>011</td>
|
||||
<td>Preprocessor updates complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/30/04</td>
|
||||
<td>11/30/04</td>
|
||||
<td>051</td>
|
||||
<td>Preprocessor updates complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/g.gif" alt="" /></td>
|
||||
<td>11/30/04</td>
|
||||
<td>11/29/04</td>
|
||||
<td>081</td>
|
||||
<td>Preprocessor updates complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/02/04</td>
|
||||
<td>011</td>
|
||||
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/02/04</td>
|
||||
<td>051</td>
|
||||
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/02/04</td>
|
||||
<td>081</td>
|
||||
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/03/04</td>
|
||||
<td>011</td>
|
||||
<td>Feature complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/03/04</td>
|
||||
<td>051</td>
|
||||
<td>Feature complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/03/04</td>
|
||||
<td>081</td>
|
||||
<td>Feature complete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/10/04</td>
|
||||
<td>011</td>
|
||||
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/10/04</td>
|
||||
<td>051</td>
|
||||
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/10/04</td>
|
||||
<td>081</td>
|
||||
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/10/04</td>
|
||||
<td>070</td>
|
||||
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/17/04</td>
|
||||
<td>011</td>
|
||||
<td>System testing complete. Begin testing with live customer data.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/17/04</td>
|
||||
<td>051</td>
|
||||
<td>System testing complete. Begin testing with live customer data.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/17/04</td>
|
||||
<td>081</td>
|
||||
<td>System testing complete. Begin testing with live customer data.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/i/w.gif" alt="" /></td>
|
||||
<td>12/17/04</td>
|
||||
<td>070</td>
|
||||
<td>System testing complete. Begin testing with live customer data.</td>
|
||||
</tr>
|
||||
</table>
|
397
vendor/RedCloth-3.0.3/tests/textism.yml
vendored
Normal file
397
vendor/RedCloth-3.0.3/tests/textism.yml
vendored
Normal file
|
@ -0,0 +1,397 @@
|
|||
---
|
||||
in: h1. Header 1
|
||||
out: <h1>Header 1</h1>
|
||||
---
|
||||
in: h2. Header 2
|
||||
out: <h2>Header 2</h2>
|
||||
---
|
||||
in: h3. Header 3
|
||||
out: <h3>Header 3</h3>
|
||||
---
|
||||
in: |-
|
||||
Any old text.
|
||||
|
||||
bq. A block quotation.
|
||||
|
||||
Any old text.
|
||||
|
||||
out: |-
|
||||
<p>Any old text.</p>
|
||||
|
||||
<blockquote>
|
||||
<p>A block quotation.</p>
|
||||
</blockquote>
|
||||
|
||||
<p>Any old text.</p>
|
||||
|
||||
---
|
||||
in: This is covered elsewhere[1].
|
||||
out: <p>This is covered elsewhere<sup><a href="#fn1">1</a></sup>.</p>
|
||||
---
|
||||
in: fn1. Down here, in fact.
|
||||
out: <p id="fn1"><sup>1</sup> Down here, in fact.</p>
|
||||
---
|
||||
in: |-
|
||||
# A first item
|
||||
# A second item
|
||||
# A third item
|
||||
# A fourth item
|
||||
out: |-
|
||||
<ol>
|
||||
<li>A first item</li>
|
||||
<li>A second item</li>
|
||||
<li>A third item</li>
|
||||
<li>A fourth item</li>
|
||||
</ol>
|
||||
---
|
||||
in: |-
|
||||
* A first item
|
||||
* A second item
|
||||
* A third item
|
||||
* A fourth item
|
||||
|
||||
out: |-
|
||||
<ul>
|
||||
<li>A first item</li>
|
||||
<li>A second item</li>
|
||||
<li>A third item</li>
|
||||
<li>A fourth item</li>
|
||||
</ul>
|
||||
|
||||
---
|
||||
in: _a phrase_
|
||||
out: <p><em>a phrase</em></p>
|
||||
---
|
||||
in: __a phrase__
|
||||
out: <p><i>a phrase</i></p>
|
||||
---
|
||||
in: '*a phrase*'
|
||||
out: <p><strong>a phrase</strong></p>
|
||||
---
|
||||
in: '**a phrase**'
|
||||
out: <p><b>a phrase</b></p>
|
||||
---
|
||||
in: Nabokov's ??Pnin??
|
||||
out: <p>Nabokov’s <cite>Pnin</cite></p>
|
||||
---
|
||||
in: -a phrase-
|
||||
out: <p><del>a phrase</del></p>
|
||||
---
|
||||
in: +a phrase+
|
||||
out: <p><ins>a phrase</ins></p>
|
||||
---
|
||||
in: ^a phrase^
|
||||
out: <p><sup>a phrase</sup></p>
|
||||
---
|
||||
in: ~a phrase~
|
||||
out: <p><sub>a phrase</sub></p>
|
||||
# ---
|
||||
# in: %(caps)SPAN%
|
||||
# out: <p><span class="caps">SPAN</span>
|
||||
---
|
||||
in: %{color:red}red%
|
||||
out: <p><span style="color:red;">red</span></p>
|
||||
---
|
||||
in: %[fr]rouge%
|
||||
out: <p><span lang="fr">rouge</span></p>
|
||||
---
|
||||
in: _(big)red_
|
||||
out: <p><em class="big">red</em></p>
|
||||
---
|
||||
in: p(bob). A paragraph
|
||||
out: <p class="bob">A paragraph</p>
|
||||
---
|
||||
in: p{color:#ddd}. A paragraph
|
||||
out: <p style="color:#ddd;">A paragraph</p>
|
||||
---
|
||||
in: p[fr]. A paragraph
|
||||
out: <p lang="fr">A paragraph</p>
|
||||
---
|
||||
in: h2()>. right-aligned header2, indented 1em both side
|
||||
out: <h2 style="padding-left:1em;padding-right:1em;text-align:right;">right-aligned header2, indented 1em both side</h2>
|
||||
---
|
||||
in: h3=. centered header
|
||||
out: <h3 style="text-align:center;">centered header</h3>
|
||||
---
|
||||
in: '!>/image.gif! right-aligned image'
|
||||
out: <p style="float:right"><img src="/image.gif" alt="" /> right-aligned image</p>
|
||||
---
|
||||
in: p[no]{color:red}. A Norse of a different colour.
|
||||
out: <p style="color:red;" lang="no">A Norse of a different colour.</p>
|
||||
---
|
||||
in: |-
|
||||
|This|is|a|simple|table|
|
||||
|This|is|a|simple|row|
|
||||
out: |-
|
||||
<table>
|
||||
<tr>
|
||||
<td>This</td>
|
||||
<td>is</td>
|
||||
<td>a</td>
|
||||
<td>simple</td>
|
||||
<td>table</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>This</td>
|
||||
<td>is</td>
|
||||
<td>a</td>
|
||||
<td>simple</td>
|
||||
<td>row</td>
|
||||
</tr>
|
||||
</table>
|
||||
---
|
||||
in: |-
|
||||
table{border:1px solid black}.
|
||||
|This|is|a|row|
|
||||
|This|is|a|row|
|
||||
out: |-
|
||||
<table style="border:1px solid black;">
|
||||
<tr>
|
||||
<td>This</td>
|
||||
<td>is</td>
|
||||
<td>a</td>
|
||||
<td>row</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>This</td>
|
||||
<td>is</td>
|
||||
<td>a</td>
|
||||
<td>row</td>
|
||||
</tr>
|
||||
</table>
|
||||
---
|
||||
in: '{background:#ddd}. |This|is|a|row|'
|
||||
out: |-
|
||||
<table>
|
||||
<tr style="background:#ddd;">
|
||||
<td>This</td>
|
||||
<td>is</td>
|
||||
<td>a</td>
|
||||
<td>row</td>
|
||||
</tr>
|
||||
</table>
|
||||
---
|
||||
in: |-
|
||||
|{background:#ddd}. Cell with gray background|
|
||||
|\2. Cell spanning 2 columns|
|
||||
|/3. Cell spanning 3 rows|
|
||||
|>. Right-aligned cell|
|
||||
out: |-
|
||||
<table>
|
||||
<tr>
|
||||
<td style="background:#ddd;">Cell with gray background</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Cell spanning 2 columns</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="3">Cell spanning 3 rows</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Right-aligned cell</td>
|
||||
</tr>
|
||||
</table>
|
||||
# ---
|
||||
# in: |-
|
||||
# This is a "link":bob to Bob's website.
|
||||
#
|
||||
# [bob]http://itsbob.com/index.html
|
||||
---
|
||||
in: ACLU(American Civil Liberties Union)
|
||||
out: <p><acronym title="American Civil Liberties Union">ACLU</acronym></p>
|
||||
---
|
||||
in: |-
|
||||
h2{color:green}. This is a title
|
||||
|
||||
h3. This is a subhead
|
||||
|
||||
p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.
|
||||
|
||||
bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.
|
||||
|
||||
Simple list:
|
||||
|
||||
#{color:blue} one
|
||||
# two
|
||||
# three
|
||||
|
||||
Multi-level list:
|
||||
|
||||
# one
|
||||
## aye
|
||||
## bee
|
||||
## see
|
||||
# two
|
||||
## x
|
||||
## y
|
||||
# three
|
||||
|
||||
Mixed list:
|
||||
|
||||
* Point one
|
||||
* Point two
|
||||
## Step 1
|
||||
## Step 2
|
||||
## Step 3
|
||||
* Point three
|
||||
** Sub point 1
|
||||
** Sub point 2
|
||||
|
||||
|
||||
Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!
|
||||
|
||||
"This is a link (optional title)":http://www.textism.com
|
||||
|
||||
table{border:1px solid black}.
|
||||
|_. this|_. is|_. a|_. header|
|
||||
<{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
|
||||
|this|<>{padding:10px}. is|^. another|(bob#bob). row|
|
||||
|
||||
An image:
|
||||
|
||||
!/common/textist.gif(optional alt text)!
|
||||
|
||||
# Librarians rule
|
||||
# Yes they do
|
||||
# But you knew that
|
||||
|
||||
Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_.
|
||||
That was a linebreak. And something to indicate *strength*. Of course I could use <em>my own HTML tags</em> if I <strong>felt</strong> like it.
|
||||
|
||||
h3. Coding
|
||||
|
||||
This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
$text = str_replace("<p>%::%</p>","",$text);
|
||||
$text = str_replace("%::%</p>","",$text);
|
||||
$text = str_replace("%::%","",$text);
|
||||
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
This isn't code.
|
||||
|
||||
|
||||
So you see, my friends:
|
||||
|
||||
* The time is now
|
||||
* The time is not later
|
||||
* The time is not yesterday
|
||||
* We must act
|
||||
|
||||
out: |-
|
||||
<h2 style="color:green;">This is a title</h2>
|
||||
|
||||
<h3>This is a subhead</h3>
|
||||
|
||||
<p style="color:red;">This is some text of dubious character. Isn’t the use of “quotes” just lazy writing—and theft of ‘intellectual property’ besides? I think the time has come to see a block quote.</p>
|
||||
|
||||
<blockquote>
|
||||
<p lang="fr">This is a block quote. I’ll admit it’s not the most exciting block quote ever devised.</p>
|
||||
</blockquote>
|
||||
|
||||
<p>Simple list:</p>
|
||||
<ol style="color:blue;">
|
||||
<li>one</li>
|
||||
<li>two</li>
|
||||
<li>three</li>
|
||||
</ol>
|
||||
|
||||
<p>Multi-level list:</p>
|
||||
<ol>
|
||||
<li>one
|
||||
<ol>
|
||||
<li>aye</li>
|
||||
<li>bee</li>
|
||||
<li>see</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>two
|
||||
<ol>
|
||||
<li>x</li>
|
||||
<li>y</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>three</li>
|
||||
</ol>
|
||||
|
||||
<p>Mixed list:</p>
|
||||
<ul>
|
||||
<li>Point one</li>
|
||||
<li>Point two
|
||||
<ol>
|
||||
<li>Step 1</li>
|
||||
<li>Step 2</li>
|
||||
<li>Step 3</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Point three
|
||||
<ul>
|
||||
<li>Sub point 1</li>
|
||||
<li>Sub point 2</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
||||
<p>Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!</p>
|
||||
|
||||
<p><a href="http://www.textism.com" title="optional title">This is a link</a></p>
|
||||
|
||||
<table style="border:1px solid black;">
|
||||
<tr>
|
||||
<th>this</th>
|
||||
<th>is</th>
|
||||
<th>a</th>
|
||||
<th>header</th>
|
||||
</tr>
|
||||
<tr style="background:gray;text-align:left;">
|
||||
<td colspan="2">this is</td>
|
||||
<td style="background:red;width:200px;">a</td>
|
||||
<td style="vertical-align:top;height:200px;text-align:justify;">row</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>this</td>
|
||||
<td style="padding:10px;text-align:justify;">is</td>
|
||||
<td style="vertical-align:top;">another</td>
|
||||
<td class="bob" id="bob">row</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<p>An image:</p>
|
||||
|
||||
<p><img src="/common/textist.gif" title="optional alt text" alt="optional alt text" /></p>
|
||||
<ol>
|
||||
<li>Librarians rule</li>
|
||||
<li>Yes they do</li>
|
||||
<li>But you knew that</li>
|
||||
</ol>
|
||||
|
||||
<p>Some more text of dubious character. Here is a noisome string of <span class="caps">CAPITAL</span> letters. Here is something we want to <em>emphasize</em>.
|
||||
That was a linebreak. And something to indicate <strong>strength</strong>. Of course I could use <em>my own <span class="caps">HTML</span> tags</em> if I <strong>felt</strong> like it.</p>
|
||||
|
||||
<h3>Coding</h3>
|
||||
|
||||
<p>This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:</p>
|
||||
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
$text = str_replace("<p>%::%</p>","",$text);
|
||||
$text = str_replace("%::%</p>","",$text);
|
||||
$text = str_replace("%::%","",$text);
|
||||
|
||||
</code>
|
||||
</pre>
|
||||
<p>This isn’t code.</p>
|
||||
|
||||
<p>So you see, my friends:</p>
|
||||
<ul>
|
||||
<li>The time is now</li>
|
||||
<li>The time is not later</li>
|
||||
<li>The time is not yesterday</li>
|
||||
<li>We must act</li>
|
||||
</ul>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue