This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 44c3e66b193e256b5e0c6c13c49716260db698f4
tree 0f3497ad2d9f13efd4f061906d4354f237d3ed9e
parent 730ad38a5bb30f0a6e3b57627ce299f65937e298
tree 0f3497ad2d9f13efd4f061906d4354f237d3ed9e
parent 730ad38a5bb30f0a6e3b57627ce299f65937e298
redcloth /
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Tue Mar 18 11:43:35 -0700 2008 | [jgarber] |
| |
COPYING | Thu Mar 20 16:27:32 -0700 2008 | [why] |
| |
README | Thu Mar 20 16:27:32 -0700 2008 | [why] |
| |
Rakefile | Thu Apr 24 19:42:37 -0700 2008 | [why] |
| |
bin/ | Tue Mar 18 07:14:08 -0700 2008 | [jgarber] |
| |
ext/ | Sat Apr 19 07:01:23 -0700 2008 | [jgarber] |
| |
extras/ | Fri Apr 18 14:34:02 -0700 2008 | [jgarber] |
| |
lib/ | Wed Apr 16 04:37:22 -0700 2008 | [jgarber] |
| |
setup.rb | Sat Jan 27 23:11:10 -0800 2007 | [why] |
| |
test/ | Wed Apr 16 04:37:22 -0700 2008 | [jgarber] |
README
= RedCloth - Textile parser for Ruby Homepage:: https://code.whytheluckystiff.net/redcloth/ Author:: Jason Garber Copyright:: (c) 2008 Jason Garber (See http://hobix.com/textile/ for a Textile reference.) = RedCloth RedCloth is a Ruby library for converting Textile into HTML. == Installing RedCloth can be installed via RubyGems: sudo gem install redcloth Or can be compiled from its Ragel source with <tt>rake compile</tt>. Ragel 6.1 or greater is required to build RedCloth. == What is Textile? Textile is a simple formatting style for text documents, loosely based on some HTML conventions. == Sample Textile Text h2. This is a title h3. This is a subhead This is a bit of paragraph. bq. This is a blockquote. = Writing Textile A Textile document consists of paragraphs. Paragraphs can be specially formatted by adding a small instruction to the beginning of the paragraph. h3. Header 3. bq. Blockquote. # Numeric list. * Bulleted list. == Quick Phrase Modifiers Quick phrase modifiers are also included, to allow formatting of small portions of text within a paragraph. \_emphasis\_ \_\_italicized\_\_ \*strong\* \*\*bold\*\* ??citation?? -deleted text- +inserted text+ ^superscript^ ~subscript~ @code@ %(classname)span% ==notextile== (leave text alone) == Links To make a hypertext link, put the link text in "quotation marks" followed immediately by a colon and the URL of the link. Optional: text in (parentheses) following the link text, but before the closing quotation mark, will become a title attribute for the link, visible as a tool tip when a cursor is above it. Example: "This is a link (This is a title)":http://www.textism.com Will become: <a href="http://www.textism.com" title="This is a title">This is a link</a> == Images To insert an image, put the URL for the image inside exclamation marks. Optional: text that immediately follows the URL in (parentheses) will be used as the Alt text for the image. Images on the web should always have descriptive Alt text for the benefit of readers using non-graphical browsers. Optional: place a colon followed by a URL immediately after the closing ! to make the image into a link. Example: !http://www.textism.com/common/textist.gif(Textist)! Will become: <img src="http://www.textism.com/common/textist.gif" alt="Textist" /> With a link: !/common/textist.gif(Textist)!:http://textism.com Will become: <a href="http://textism.com"><img src="/common/textist.gif" alt="Textist" /></a> == Defining Acronyms HTML allows authors to define acronyms via the tag. The definition appears as a tool tip when a cursor hovers over the acronym. A crucial aid to clear writing, this should be used at least once for each acronym in documents where they appear. To quickly define an acronym in Textile, place the full text in (parentheses) immediately following the acronym. Example: ACLU(American Civil Liberties Union) Will become: <acronym title="American Civil Liberties Union">ACLU</acronym> == Adding Tables In Textile, simple tables can be added by separating each column by a pipe. |a|simple|table|row| |And|Another|table|row| Styles are applied with curly braces. table{border:1px solid black}. {background:#ddd;color:red}. |a|red|row| == Using RedCloth RedCloth is simply an extension of the String class, which can handle Textile formatting. Use it like a String and output HTML with its RedCloth#to_html method. doc = RedCloth.new " h2. Test document Just a simple test." puts doc.to_html




