RedCloth gem

Gem details

RedCloth is a Ruby library for converting Textile and/or Markdown into HTML. You can use either format, intermingled or separately. You can also extend RedCloth to honor your own custom text stylings.

RedCloth users are encouraged to use Textile if they are generating HTML and to use Markdown if others will be viewing the plain text.

Websitehttp://whytheluckystiff.net/ruby/redcloth/ Tags RedCloth, Textile

Documentation

Install the Gem:
gem install RedCloth

=== 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.

 h[n].   Header of size [n].
 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%

Edit Gem | (0 older versions) | Last edited by: Guest, 6 months ago