p=. !redcloth3-title.png!
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| |>> r = RedCloth.new "*strong text* and _emphasized text_" => "*strong text* and _emphasized text_" >> r.gsub!( 'text', 'words' ) => "*strong words* and _emphasized words_"To generate HTML from your RedCloth object, use the @RedCloth#to_html@ method:
>> r.to_html => "h2. Installing RedCloth To install RedCloth via RubyGems:strong words and emphasized words
"
gem install RedClothOr "download RedCloth":http://rubyforge.org/frs/download.php/2852/RedCloth-3.0.2.tar.gz and simply run the install.rb like so:
ruby install.rb config ruby install.rb setup sudo ruby install.rb installh2. 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.