Upgraded RedCloth to 3.0.3

This commit is contained in:
Alexey Verkhovsky 2005-02-10 23:11:47 +00:00
parent 2aa1aa8fad
commit bb2d16c8a1
27 changed files with 1844 additions and 1092 deletions

52
vendor/RedCloth-3.0.3/RedCloth.gemspec vendored Normal file
View file

@ -0,0 +1,52 @@
require 'rubygems'
spec = Gem::Specification.new do |s|
## Basic Information
s.name = 'RedCloth'
s.version = "3.0.3"
s.platform = Gem::Platform::RUBY
s.summary = <<-TXT
RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats.
A very simple text format. Another stab at making readable text that can be converted to HTML.
TXT
s.description = <<-TXT
No need to use verbose HTML to build your docs, your blogs, your pages. Textile gives you readable text while you're writing and beautiful text for your readers. And if you need to break out into HTML, Textile will allow you to do so.
Textile also handles some subtleties of formatting which will enhance your document's readability:
* Single- and double-quotes around words or phrases are converted to curly quotations, much easier on
the eye. "Observe!"
* Double hyphens are replaced with an em-dash. Observe -- very nice!
* Single hyphens are replaced with en-dashes. Observe - so cute!
* Triplets of periods become an ellipsis. Observe...
* The letter 'x' becomes a dimension sign when used alone. Observe: 2 x 2.
* Conversion of ==(TM)== to (TM), ==(R)== to (R), ==(C)== to (C).
For more on Textile's language, hop over to "A Textile Reference":http://hobix.com/textile/. For more
on Markdown, see "Daring Fireball's page":http://daringfireball.net/projects/markdown/.
TXT
## Include tests, libs, docs
s.files = ['bin/**/*', 'tests/**/*', 'lib/**/*', 'docs/**/*', 'run-tests.rb'].collect do |dirglob|
Dir.glob(dirglob)
end.flatten.delete_if {|item| item.include?("CVS")}
## Load-time details
s.require_path = 'lib'
s.autorequire = 'redcloth'
## Author and project details
s.author = "Why the Lucky Stiff"
s.email = "why@ruby-lang.org"
s.rubyforge_project = "redcloth"
s.homepage = "http://www.whytheluckystiff.net/ruby/redcloth/"
end

3
vendor/RedCloth-3.0.3/bin/redcloth vendored Normal file
View file

@ -0,0 +1,3 @@
#!/usr/local/bin/ruby18
require 'redcloth'
puts RedCloth.new( ARGF.read ).to_html

149
vendor/RedCloth-3.0.3/doc/CHANGELOG vendored Normal file
View file

@ -0,0 +1,149 @@
--- %YAML:1.0
- version: 3.0.3
date: 2005-02-06
changes:
- Stack overflow regexp on code inlines obliterated.
- Citations scaled back.
- Toggle span tags on CAPS with :no_span_tags accessor.
- version: 3.0.2
date: 2005-02-02
changes:
- Stack overflow Regexps replaced.
- All code blocks protected from formatting.
- Hard breaks working.
- Filter HTML now uses detailed cleaner.
- version: 3.0.1
date: 2004-11-15
changes:
- Using `float' rather than `text-align' to align image blocks.
- Shelving more HTML attributes to prevent them from clashing with Textile glyphs.
- Simplifying the block regexp.
- version: 3.0
date: 2004-10-26
changes:
- Broke up the Textile engine into smaller parts, recoded central block parser.
- Added preliminary support for Markdown.
- Added support for custom Textile prefixes.
- RedCloth now generates XHTML fragments.
- Complete HTML documents should now work, RedCloth ignores complex HTML.
- version: 2.0.12
date: 2004-08-09
changes:
- Escaping tighter for <pre> tags that share a single line.
- No more String#htmlesc!. Moved to RedCloth#htmlesc.
- Pruned out the code that was handling multibyte.
- version: 2.0.11
date: 2004-06-01
changes:
- Fixed the new 2.0-style aliased links.
- Lines starting with div opening or closing tags aren't given paragraph tags.
- Escaped some sample markup that was being translated by RDoc.
- Subtle changes to the quick tags to help them interact with surrounding HTML better.
- Ensure angle brackets inside code quick tags get escaped.
- New patch and test by F. Ros to fix <pre> tags with class settings.
- Commented out encode_entities and fix_entities, they do nothing now. Thanks, Denis.
- Scaled back QTAGS a back to avoid mixing up hyphens and dels. Thanks, Denis.
- Work on the references to ensure they are generating at least XHTML 1.0 Transitional.
- version: 2.0.10
date: 2004-05-26
changes:
- Table and list problems. Rewrote the <pre> handling code.. again.
- version: 2.0.9
date: 2004-05-26
changes:
- Improved RDoc. Ri documentation is auto-installed now!
- Links were consuming closing HTML tags. (See latest test in tests/links.yml.)
- Further speed patch from Denis. Good good.
- Patch by F. Ros to fix <pre> tags with class settings.
- version: 2.0.8
date: 2004-05-22
changes:
- First scan of the glyphs() method only scans for pre|notextile|code, the
deeper passes scan for all HTML. Now inlines work around HTML tags!
(What a pain!)
- Moved tables and blocks into glyphs to keep them shielded from the parser
if they are in <pre> tags.
- Patch by Denis Mertz to speed up RedCloth by compiling the various RegExps
only once. Thanks, David!
- version: 2.0.7
date: 2004-04-21
changes:
- New REFERENCE and QUICK-REFERENCE. See http://hobix.com/textile/.
- Lists rewritten to accomplish better line folding.
- Better, greedier links.
- Additional link and list tests.
- version: 2.0.6
date: 2004-04-16
changes:
- Bold and strong tags were mixed up. '*' is now strong. '**' is bold.
They were swapped until now.
- Horizontal alignments were pretty buggy. Combining alignments with
indents was totally broken.
- Fixed table problem. Now glyphs are handled between tables and blocks.
- Nested <pre> and <code> tags are now escaped. Much better handling of
HTML inside <pre> tags. Really: quite nice.
- Patch from Florian Gross to fix an html filtration inconsistency.
- version: 2.0.5
date: 2004-04-14
changes:
- Added safe mode (patch courtesy of Florian Gross).
- Added line folding (suggested by Jim Menard).
- Fixing notextile tags to work multi-line.
- Ambiguity with em-dash and block opener.
- Footnote bug. (Thanks, Jim Menard!)
- version: 2.0.4
date: 2004-04-08
changes:
- Scaled back aggresiveness of the inline matching to aid the em-dash.
- Scaled back footnotes to stay out of array indices.
- version: 2.0.3
date: 2004-04-02
changes:
- Handling of pre, code, notextile was all wrong. Also, got rid of the goofed up
split then collect. Now using gsub! and recursion to handle inlines and glyphs.
- Better acronym support.
- Suppression of Regexp warnings.
- Single- and double-quoted string wierdness. Thanks, Bret Pettichord.
- version: 2.0.2
date: 2004-03-08
changes:
- Fixed broken lists, broken tables.
- code/pre tags now escape properly, glyphs are working, spans are working when surrounded by html tags.
- Fixed classes and ids.
- Restricted notextile tags to a single line.
- version: 2.0.1
date: 2004-02-10
changes:
- Unmatched closing slash on regexps in ruby 1.6.8.
- Fixes to bulleted lists.
- version: 2.0
date: 2004-02-06
changes:
- Complete rewrite of RedCloth, against beta2 from textism.com.
- version: 0.41
date: 2003-06-20
changes:
- Newlines were outputing as escaped.
- version: 0.4
date: 2003-06-20
changes:
- Initial public release.
- Integration of YAML-based PyTextile tests.

25
vendor/RedCloth-3.0.3/doc/COPYING vendored Normal file
View file

@ -0,0 +1,25 @@
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Textile nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

108
vendor/RedCloth-3.0.3/doc/README vendored Normal file
View file

@ -0,0 +1,108 @@
p=. !redcloth3-title.png!
<div id="sidebar">
h4. Get RedCloth 3
p(example1). *Stable version:* "2.0.11":http://rubyforge.org/frs/download.php/698/redcloth-2.0.11.tar.gz
p(example1). *Unstable version:* "3.0.2":http://rubyforge.org/frs/download.php/2852/RedCloth-3.0.2.tar.gz
Take a complete tour of Textile at "A Textile Reference":http://hobix.com/textile/.
For fast syntax checking, try the "Quick Reference":http://hobix.com/textile/quick.html.
p(example1). Upgrade with "RubyGems":http://rubygems.rubyforge.org/! Try:
@gem install RedCloth@.
See the "project page":http://rubyforge.org/projects/redcloth/ for bug reporting, old releases and CVS instructions. "Documentation":http://redcloth.rubyforge.org/rdoc/ is also hosted at RubyForge.
h4. RedCloth Links
"Instiki":http://www.instiki.org is the greatest Wiki ever! Uses RedCloth for its markup!
"Hobix":http://hobix.com is a lovely little blogging package which uses RedCloth for blog entries.
<div id="css-buttons">
* "(css-button w3c)%W3C% xhtml 1.0(Valid XHTML 1.0!)":http://validator.w3.org/check?uri=referer
* "(css-button w3c w3c2)%W3C% valid css(Valid CSS!)":http://jigsaw.w3.org/css-validator/check/referer
</div>
</div>
RedCloth is a module for using Textile in Ruby. Textile is a text format. A very simple text format. Another stab at making readable text that can be converted to HTML.
h2. What is Textile?
Textile is a simple markup language.
table{width:400px}.
|_. textile|_. to|_. html|
| <notextile>_a phrase_</notextile> |->|_a phrase_|
| <notextile>*a phrase*</notextile> |->|*a phrase*|
| <notextile>_*a phrase*_</notextile> |->|_*a phrase*_|
| <notextile>"Google":http://google.com</notextile> |->|"Google":http://google.com|
No need to use verbose HTML to build your docs, your blogs, your pages. Textile gives you readable text while you're writing and beautiful text for your readers. And if you need to break out into HTML, Textile will allow you to do so.
Textile also handles some subtleties of formatting which will enhance your document's readability:
* Single- and double-quotes around words or phrases are converted to curly quotations, much easier on
the eye. "Observe!"
* Double hyphens are replaced with an em-dash. Observe -- very nice!
* Single hyphens are replaced with en-dashes. Observe - so cute!
* Triplets of periods become an ellipsis. Observe...
* The letter 'x' becomes a dimension sign when used alone. Observe: 2 x 2.
* Conversion of <notextile>(TM)</notextile> to (TM), <notextile>(R)</notextile> to (R), <notextile>(C)</notextile> to (C).
For more on Textile's language, hop over to "A Textile Reference":http://hobix.com/textile/.
h2. Using RedCloth
The RedCloth class is an extension of Ruby's String class. Use it like you would a String:
<pre>
>> r = RedCloth.new "*strong text* and _emphasized text_"
=> "*strong text* and _emphasized text_"
>> r.gsub!( 'text', 'words' )
=> "*strong words* and _emphasized words_"
</pre>
To generate HTML from your RedCloth object, use the @RedCloth#to_html@ method:
<pre>
>> r.to_html
=> "<p><strong>strong words</strong> and <em>emphasized words</em></p>"
</pre>
h2. Installing RedCloth
To install RedCloth via RubyGems:
<pre>
gem install RedCloth
</pre>
Or "download RedCloth":http://rubyforge.org/frs/download.php/2852/RedCloth-3.0.2.tar.gz and simply run the install.rb like so:
<pre>
ruby install.rb config
ruby install.rb setup
sudo ruby install.rb install
</pre>
h2. Acknowledgements
Textile is (c) 2003 Dean Allen. All rights reserved. You can read more "here":http://www.textism.com/tools/textile/.
RedCloth is also based on PyTextile, which is: Copyright (c) 2003, "Mark Pilgrim":http://diveintomark.org/. All rights reserved. You can read more about PyTextile "here":http://dealmeida.net/projects/textile.

216
vendor/RedCloth-3.0.3/doc/REFERENCE vendored Normal file
View file

@ -0,0 +1,216 @@
---
- A Textile Reference:
- Textile is a simple text markup. Simple symbols mark words' emphasis. Blocks of text
can be easily tagged as headers, quotes, or lists. A Textile document can then be
converted to HTML(Hypertext Markup Language) for viewing on the web.
- You can try Textile out on the "Textile home page":http://www.textism.com/tools/textile/.
Textile is also available as "RedCloth":http://whytheluckystiff.net/ruby/redcloth/ for
Ruby or "PyTextile":http://dealmeida.net/projects/textile for Python.
- Also refer to the "*Quick Reference*":javascript:quickRedReference(); for this guide.
- h4. Reading the Examples
- In each section below, examples are provided to clearly illustrate. In each example,
the Textile example is followed by the raw HTML it is translated into, followed by how
the HTML appears in the browser.
-
- Textile example
- Converted to HTML
- Browser-view
- Writing in Textile:
- Textile looks for paragraphs in your text. Paragraphs are separated by one blank line.
Every paragraph is translated as an HTML paragraph.
- !!example "A single paragraph.\n\nFollowed by another."
- h4. Using HTML in Textile
- You can certainly use HTML tags inside your Textile documents. HTML will only be escaped
if it's found in a @pre@ or @code@ block.
- !!example "I am <b>very</b> serious.\n\n<pre>\n I am <b>very</b> serious.\n</pre>"
- h4. Line Breaks
- Line breaks are converted to HTML breaks.
- !!example "I spoke.\nAnd none replied."
- Line breaks can be disabled in RedCloth by turning on @fold_lines@.
- h4. Entities
- Single- and double-quotes around words or phrases are converted to curly quotations, much easier on the eye.
- !!example '"Observe!"'
- Double hyphens are replaced with an em-dash.
- !!example Observe -- very nice!
- Single hyphens are replaced with en-dashes.
- !!example Observe - tiny and brief.
- Triplets of periods become an ellipsis.
- !!example Observe...
- The letter 'x' becomes a dimension sign when used alone.
- !!example 'Observe: 2 x 2.'
- Conversion of trademark and copyright symbols.
- !!example 'one(TM), two(R), three(C).'
- Quick Block Modifiers:
- Blocks of text default to being treated as paragraphs. But modifers can be affixed
to the beginning of a block to change its treatment.
- h4. Headers
- To make an entire paragraph into a Header, place "h<em>n</em>." at
its beginning, where _n_ is a number from 1-6.
- !!example h1. Header 1
- !!example h2. Header 2
- !!example h3. Header 3
- h4. Block Quotes
- To make an entire paragraph into a block quotation, place
"bq." before it.
- !!example "An old text\n\nbq. A block quotation.\n\nAny old text"
- h4. Footnotes
- Numeric references within text to footnotes appear between square brackets.
- !!example This is covered elsewhere[1].
- To create the footnote that corresponds to its reference within the text, begin a new paragraph with fn and the
footnote's number, followed by a dot and a space.
- !!example fn1. Down here, in fact.
- Quick Phrase Modifiers:
- h4. Structural Emphasis
- Emphasis to text is added by surrounding a phrase with underscores. In HTML, this often
appears as <em>italics</em>.
- !!example I _believe_ every word.
- Strength can be give to text by surrounding with asterisks. In HTML, this strength appears
as <strong>bold</strong>.
- !!example And then? She *fell*!
- Both italics and bold can be forced by doubling the underscores or asterisks.
- !!example "I __know__.\nI **really** __know__."
- Use double question marks to indicate _citation_. The title of a book, for instance.
- !!example "??Cat's Cradle?? by Vonnegut"
- Code phrases can be surrounded by at-symbols.
- !!example "Convert with @r.to_html@"
- To indicate a passage which has been deleted, surround the passage with hypens.
- !!example "I'm -sure- not sure."
- Pluses around a passage indicate its insertion.
- !!example "You are a +pleasant+ child."
- To superscript a phrase, surround with carets.
- !!example "a ^2^ + b ^2^ = c ^2^"
- To subscript, surround with tildes.
- !!example "log ~2~ x"
- h4. HTML-Specific
- Lastly, if you find yourself needing to customize the style of a passage, use percent symbols
to translate the passage as an HTML span.
- !!example I'm %unaware% of most soft drinks.
- This way, you can apply style settings, as described in the next section to arbitrary phrases.
- !!example "I'm %{color:red}unaware%\nof most soft drinks."
- Attributes:
- Tailoring Textile to suit your needs is quite easy. Attributes allow you to provide CSS(Cascading
Style Sheets) information about any phrase.
- h4. Block Attributes
- A block can be tagged with a CSS class by circling the class in parentheses and
placing it just before the period which marks the block.
- !!example p(example1). An example
- An element ID can be given by prefixing the ID with a pound symbol and using it in place of
the class.
- !!example p(#big-red). Red here
- Class and ID can be combined by placing the class first.
- !!example p(example1#big-red2). Red here
- Style settings can be provided directly by surrounding them in curly braces.
- !!example p{color:blue;margin:30px}. Spacey blue
- Language designations can be given between angel brackets.
- !!example p[fr]. rouge
- h4. Phrase Attributes
- All block attributes can be applied to phrases as well by placing them just inside the
opening modifier.
- !!example "I seriously *{color:red}blushed*\nwhen I _(big)sprouted_ that\ncorn stalk from my\n%[es]cabeza%."
- h4. Block Alignments
- Text inside blocks can be aligned in four basic ways.
- !!example p<. align left
- !!example p>. align right
- !!example p=. centered
- !!example p<>. justified
- Indentation can also be specified by provide a single left paren for every 1em to the left. A single right
paren for every 1em to the right.
- !!example p(. left ident 1em
- !!example p((. left ident 2em
- !!example p))). right ident 3em
- h4. Combining Alignments
- Identation may be coupled with alignment.
- !!example "h2()>. Bingo."
- And, furthermore, coupled with language settings and CSS styles.
- !!example "h3()>[no]{color:red}. Bingo"
- h4. HTML in Textile
- Textile is designed for quickening the simple markups. For more complex formatting, you are encouraged
to break out into HTML.
- For example, long code blocks belong between @pre@ and @code@ tags. Please also indent your code inside
the tags to be sure that all Textile processors out there will ignore the contents.
- !!example |
<pre>
<code>
a.gsub!( /</, '' )
</code>
</pre>
- You may also choose to surround sections with @div@ tags to separate your document into sections.
"Instiki":http://www.instiki.org/ uses this technique to float a sidebar to the right.
- !!example |
<div style="float:right;">
h3. Sidebar
"Hobix":http://hobix.com/
"Ruby":http://ruby-lang.org/
</div>
The main text of the
page goes here and will
stay to the left of the
sidebar.
- Lists:
- h4. Numeric Lists
- To make a numbered list, place each item in its own paragraph, preceded by "#".
- !!example "# A first item\n# A second item\n# A third"
- These lists may be nested by increasing the number of pound symbols preceding child entries.
- !!example "# Fuel could be:\n## Coal\n## Gasoline\n## Electricity\n# Humans need only:\n## Water\n## Protein"
- h4. Bulleted Lists
- Bulleted lists use an asterisk in place of the pound.
- !!example "* A first item\n* A second item\n* A third"
- These lists may be nested in like manner.
- !!example "* Fuel could be:\n** Coal\n** Gasoline\n** Electricity\n* Humans need only:\n** Water\n** Protein"
- External References:
- h4. Hypertext Links
- Basic links are comprised of a phrase which is linked to a URL(Universal Resource Locator). Place the
descriptive phrase in quotation marks. Follow it immediately by a colon and the URL.
- !!example I searched "Google":http://google.com.
- Notice, the link won't include any trailing punctuation.
- h4. Link Aliases
- If you are using the same link several times in your document, or you'd just like to be a tad more
organized, you can use a link alias. Place the URL anywhere in your document, beginning with its
alias in square brackets. Then, use the alias in place of the URL, using the link format above.
- !!example |
I am crazy about "Hobix":hobix
and "it's":hobix "all":hobix I ever
"link to":hobix!
[hobix]http://hobix.com
- h4. Embedded Images
- You can embed an image in your Textile document by surrounding its URL with exclamation marks.
- !!example "!http://hobix.com/sample.jpg!"
- URLs may be relative.
- A title for the image can also be provided in parens, just before the closing exclamation.
- !!example "!openwindow1.gif(Bunny.)!"
- The title also acts as *alt* text should the image not be found.
- Links can be attached to images with a colon.
- !!example "!openwindow1.gif!:http://hobix.com/"
- h4. Image Alignments
- Alignments can be applied as well to images.
- !!example "!>obake.gif!\n\nAnd others sat all round the small\nmachine and paid it to sing to them."
- h4. Acronyms
- Definitions for acronyms can be provided by following an acronym with its definition in parens.
- !!example We use CSS(Cascading Style Sheets).
- Tables:
- Simple tables can be built by separating fields with pipe characters
- !!example "| name | age | sex |\n| joan | 24 | f |\n| archie | 29 | m |\n| bella | 45 | f |"
- Specify header cells by marking them with an underscore and period.
- !!example "|_. name |_. age |_. sex |\n| joan | 24 | f |\n| archie | 29 | m |\n| bella | 45 | f |"
- h4. Cell Attributes
- The period used above marks the end of a cell's attributes. Other attributes can be applied as well.
- !!example "|_. attribute list |\n|<. align left |\n|>. align right|\n|=. center |\n|<>. justify |\n|^. valign top |\n|~. bottom |"
- You can also specify colspans with a backslash, followed by the cell width.
- !!example "|\\2. spans two cols |\n| col 1 | col 2 |"
- Rowspan is specified by a forward slash, followed by the row height.
- !!example "|/3. spans 3 rows | a |\n| b |\n| c |"
- All block attributes can be applied to table cells as well.
- !!example "|{background:#ddd}. Grey cell|"
- h4. Table and Row Attributes
- Table-wide attributes can be applied before the first row of the table. On its own line, followed by
a period.
- !!example "table{border:1px solid black}.\n|This|is|a|row|\n|This|is|a|row|"
- Attributes can be applied to a single row by supplying the attribute before the row starts, using a
@table@ modifier and following it by a period.
- !!example "|This|is|a|row|\n{background:#ddd}. |This|is|grey|row|"

359
vendor/RedCloth-3.0.3/doc/make.rb vendored Normal file
View file

@ -0,0 +1,359 @@
$:.unshift '../lib'
require 'yaml'
require 'redcloth'
class String
#
# Flexible HTML escaping
#
def htmlesc!( mode )
gsub!( '&', '&amp;' )
gsub!( '"', '&quot;' ) if mode != :NoQuotes
gsub!( "'", '&#039;' ) if mode == :Quotes
gsub!('<', '&lt;')
gsub!('>', '&gt;')
end
end
def a_name( phrase )
phrase.downcase.
gsub( /\W+/, '-' )
end
file_name = ARGV.shift
case file_name
when 'README'
puts <<-HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RedCloth [Textile Humane Web Text for Ruby]</title>
<style type="text/css">
BODY {
margin: 10px 60px 40px 60px;
font-family: georgia, serif;
font-size: 12pt;
}
TABLE {
padding: 15px;
width: 250px;
}
TH {
text-align: left;
}
TD {
border-top: solid 1px #eee;
}
H4 {
border: solid 1px #caa;
margin: 10px 15px 5px 10px;
padding: 5px;
color: white;
background-color: #333;
font-weight: bold;
font-size: 12pt;
}
P {
margin: 10px 15px 5px 15px;
}
P.example1 {
background-color: #FEE;
font-weight: bold;
font-size: 9pt;
padding: 5px;
}
P.example2 {
border: solid 1px #DDD;
background-color: #EEE;
font-size: 9pt;
padding: 5px;
}
.big {
font-size: 15pt;
}
#big-red {
font-size: 15pt;
color: red;
}
#big-red2 {
font-size: 15pt;
color: red;
}
#sidebar {
float: right;
font-family: verdana, arial, sans-serif;
font-size: 10pt;
border-left: solid 1px #999;
margin-left: 10px;
width: 200px;
}
/* VARIATION BUTTON STYLING (v2.0) - SIZABLE SIZE */
#css-buttons ul{list-style: none;margin: 0 0 10px 0;padding: 0;}
#css-buttons li{border: 1px solid #999; margin: 5px 0 0 20px; width:9.0em;}
head:first-child+body #css-buttons li{padding-right:2px;}
#css-buttons li a{color: #333; text-decoration: none;}
.css-button {
display:block;
font: 0.8em verdana, arial, sans-serif;
padding: 2px 0 2px 0px; border: 1px solid white;
text-decoration: none; width:100%;
background: #ddd;color: #333;
}
.css-button span {
font: bold 1.0em verdana, arial, sans-serif;
padding: 2px 3px 2px 3px; color: #fff;
}
/* BUTTON LOGO STYLING */
.rss span{background:#f60;}
.w3c span {background: #fff; color: #069; font: bold 1.1em helvetica, arial, Sans-Serif;}
.w3c2{background: #fc6;color: black !important;}
</style>
</head>
<body>
HTML
puts RedCloth.new( File.open( file_name ).read ).to_html
puts "</body>"
puts "</html>"
when 'QUICK-REFERENCE'
YAML::add_private_type( "example" ) do |type, val|
esc = val.dup
esc.htmlesc!( :NoQuotes )
[ :example, esc.gsub( /\n/, '<br />' ),
RedCloth.new( val ).to_html ]
end
content = YAML::load( File.open( 'REFERENCE' ) )
sections = content.collect { |c| c.keys.first }
sections.shift
puts <<-HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Textile Quick Reference</title>
<style type="text/css">
BODY {
margin: 5px;
}
TABLE {
font-family: georgia, serif;
font-size: 10pt;
padding: 5px;
width: 200px;
}
TH {
padding-top: 10px;
}
TD {
border-top: solid 1px #eee;
}
H1 {
font-size: 18pt;
}
H4 {
color: #999;
background-color: #fee;
border: solid 1px #caa;
margin: 10px 15px 5px 10px;
padding: 5px;
}
P {
margin: 2px 5px 2px 5px;
}
TD.example1 PRE {
background-color: #FEE;
font-family: georgia, serif;
font-size: 8pt;
padding: 5px;
padding: 5px;
}
TD.example3 {
border: solid 1px #DDD;
background-color: #EEE;
font-size: 8pt;
padding: 5px;
}
.big {
font-size: 12pt;
}
#big-red {
font-size: 12pt;
color: red;
}
#big-red2 {
font-size: 15pt;
color: red;
}
</style>
</head>
<body>
<table>
<tr><th colspan='3'><h1>Textile Quick Reference</h1></th></tr>
<tr><th colspan='3'>Sections: #{ sections.collect { |s| "<a href='##{ a_name( s ) }'>#{ s.gsub( /\s/, '&nbsp;' ) }</a>" }.join( ' | ' ) }</th></tr>
HTML
ct = 0
content.each do |section|
section.each do |header, parags|
puts "<tr><th colspan='5'><a name='#{ a_name( header ) }'>#{ header }</a></th></tr>" if ct.nonzero?
parags.each do |p|
if p.is_a?( Array ) and p[0] == :example
puts "<tr><td class='example1'><pre>#{ p[1] }</pre></td><td>&rarr;</td>" +
"<td class='example2'>#{ p[2] }</td></tr>"
end
end
end
ct += 1
end
puts "</table>"
puts "</body>"
puts "</html>"
when 'REFERENCE'
YAML::add_private_type( "example" ) do |type, val|
esc = val.dup
esc.htmlesc!( :NoQuotes )
[ esc.gsub( /\n/, '<br />' ),
RedCloth.new( val ).to_html.
gsub( /;(\w)/, '; \1' ).
htmlesc!( :NoQuotes ).
gsub( /\n/, '<br />' ),
RedCloth.new( val ).to_html ]
end
content = YAML::load( File.open( file_name ) )
sections = content.collect { |c| c.keys.first }
sections.shift
puts <<-HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Textile Reference</title>
<style type="text/css">
BODY {
margin: 10px 30px;
}
TABLE {
font-family: georgia, serif;
font-size: 11pt;
padding: 15px;
}
TH {
border-bottom: solid 1px black;
font-size: 24pt;
font-weight: bold;
padding-top: 30px;
}
H1 {
font-size: 42pt;
}
H4 {
color: #666;
background-color: #fee;
border: solid 1px #caa;
margin: 10px 0px 5px 0px;
padding: 5px;
}
P {
margin: 10px 15px 5px 15px;
}
TD.sections {
background: black;
color: white;
font-family: georgia, serif;
font-weight: bold;
font-size: 9pt;
padding: 5px;
}
TD.sections A { color: #CCEEFF; }
TD.sections A:link { color: #CCEEFF; }
TD.sections A:visited { color: #CCEEFF; }
TD.sections A:active { color: #EEEEEE; }
TD.sections A:hover { color: #EEEEEE; }
TD.example1 PRE {
background-color: #B30;
color: white;
font-family: georgia, serif;
font-weight: bold;
font-size: 9pt;
padding: 5px;
}
TD.example2 P {
border: solid 1px #DDD;
background-color: #EEE;
font-family: georgia, serif;
font-size: 9pt;
padding: 5px;
}
TD.example3 {
border: solid 1px #EED;
background-color: #FFE;
padding: 5px;
}
.big {
font-size: 15pt;
}
#big-red {
font-size: 15pt;
color: red
}
</style>
<script type="text/javascript">
function quickRedReference() {
window.open(
"quick.html",
"redRef",
"height=600,width=550,channelmode=0,dependent=0," +
"directories=0,fullscreen=0,location=0,menubar=0," +
"resizable=0,scrollbars=1,status=1,toolbar=0"
);
}
</script>
</head>
<body>
<table>
HTML
ct = 0
content.each do |section|
section.each do |header, parags|
if ct.zero?
puts "<tr><th colspan='3'><h1>#{ header }</h1></th></tr>"
puts "<tr><td class='sections' colspan='3'>Sections: #{ sections.collect { |s| "<a href='##{ a_name( s ) }'>#{ s.gsub( /\s/, '&nbsp;' ) }</a>" }.join( ' | ' ) }</td></tr>"
else
puts "<tr><th colspan='3'><a name='#{ a_name( header ) }'><small>#{ ct }.</small></a><br />#{ header }</th></tr>"
end
parags.each do |p|
if p.is_a? Array
puts "<tr><td class='example1' valign='top'><pre>#{ p[0] }</pre></td><td>&rarr;</td>" +
"<td class='example2'><p>#{ p[1] }</p></td></tr><tr><td colspan='2'></td>" +
"<td class='example3'>#{ p[2] }</td></tr>"
else
puts "<tr><td class='explain' colspan='3'>"
puts RedCloth.new( p ).to_html
puts "</td></tr>"
end
end
unless ct.zero?
puts "<tr><td colspan='5' style='border-bottom: solid 1px #eee;'></td></tr>"
end
end
ct += 1
end
puts "</table>"
puts "</body>"
puts "</html>"
end

1032
vendor/RedCloth-3.0.3/install.rb vendored Normal file

File diff suppressed because it is too large Load diff

1113
vendor/RedCloth-3.0.3/lib/redcloth.rb vendored Normal file

File diff suppressed because it is too large Load diff

26
vendor/RedCloth-3.0.3/run-tests.rb vendored Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env ruby
require 'lib/redcloth'
require 'yaml'
Dir["tests/*.yml"].each do |testfile|
YAML::load_documents( File.open( testfile ) ) do |doc|
if doc['in'] and doc['out']
red = RedCloth.new( doc['in'] )
html = if testfile =~ /markdown/
red.to_html( :markdown )
else
red.to_html
end
puts "---"
html.gsub!( /\n+/, "\n" )
doc['out'].gsub!( /\n+/, "\n" )
if html == doc['out']
puts "success: true"
else
puts "out: "; p html
puts "expected: "; p doc['out']
end
end
end
end

105
vendor/RedCloth-3.0.3/tests/code.yml vendored Normal file
View 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&#8230;</p>
<pre>
<code>
Good code here.
&lt;pre&gt;
a = 1
&lt;/pre&gt;
Bad code here.
&lt;script language="JavaScript"&gt;
window.open( "about:blank" );
&lt;/script&gt;
</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"> &lt;hello&gt; </pre>
<pre class="code"> &lt;hello&gt; </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
View 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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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&#38;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
View 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> &#8211; 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> &#8211; First cut of new system. Much cleaner.</li>
<li><a href="http://www.threewordslong.com/chunk-0-2.patch.gz">Version 0.2</a> &#8211; Fixed problem with &#8220;authors&#8221; page and some tests.</li>
</ul>
---
in: "--richSeymour --whyTheLuckyStiff"
out: "<p>&#8212;richSeymour&#8212;whyTheLuckyStiff</p>"

155
vendor/RedCloth-3.0.3/tests/links.yml vendored Normal file
View 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&#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>"
---
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>

77
vendor/RedCloth-3.0.3/tests/lists.yml vendored Normal file
View 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 &gt; toto</code></li>\n\t</ul>"

218
vendor/RedCloth-3.0.3/tests/markdown.yml vendored Normal file
View 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&#38;q=larry+bird</p>'
---
in: '&copy;'
out: <p>&copy;</p>
---
in: AT&T
out: <p>AT&#38;T</p>
# We don't do this.
# ---
# in: 4 < 5
# out: 4 &lt; 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>

View 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&#8217;t see anything print to the screen. They&#8217;re not on the <code>if</code> guest list. So <code>if</code> isn&#8217;t going to run any of the code it&#8217;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&#8217;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&#8217;ve met <code>false</code>, I&#8217;m sure you can see what&#8217;s on next.</p>"

198
vendor/RedCloth-3.0.3/tests/table.yml vendored Normal file
View 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
View 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&#8217;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&#8217;t the use of &#8220;quotes&#8221; just lazy writing&#8212;and theft of &#8216;intellectual property&#8217; besides? I think the time has come to see a block quote.</p>
<blockquote>
<p lang="fr">This is a block quote. I&#8217;ll admit it&#8217;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("&lt;p&gt;%::%&lt;/p&gt;","",$text);
$text = str_replace("%::%&lt;/p&gt;","",$text);
$text = str_replace("%::%","",$text);
</code>
</pre>
<p>This isn&#8217;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>