Class ClothRed
In: ../lib/clothred.rb
Parent: String

Provides the methods to convert HTML into Textile.

Author:Phillip "CynicalRyan" Gawlowski (cmdjackryan@gmail.com)
Copyright:Copyright (c) 2007 Phillip Gawlowski
License:BSD

Methods

new   to_textile  

Constants

FORMATTING_HTML = [ ["<b>", "**"], ["</b>","**"], ["<em>","_"], ["</em>", "_"], ["<b>", "*"], ["</b>", "*"], ["<cite>", "??"], ["</cite>", "??"], ["<code>", "@"], ["</code>", "@"], ["<del>", "-"], ["</del>", "-"], ["<ins>", "+"], ["</ins>", "+"], ["<sup>","^"], ["</sup>","^"], ["<sub>","~"], ["</sub>","~"], ["<strong>", "*"], ["</strong>", "*"], ["<i>","__"], ["</i>", "__"]

Public Class methods

Public Instance methods

++ Call all necessary methods to convert a string of HTML into Textile markup.

[Validate]