class RDiscount


end
require ‘bluecloth’
rescue LoadError
BlueCloth = RDiscount
require ‘rdiscount’
begin
require statements with the following:
Inject RDiscount into your BlueCloth-using code by replacing your bluecloth
== Replacing BlueCloth
puts markdown.to_html
markdown = RDiscount.new(“Hello World!”)
require ‘rdiscount’
by BlueCloth:
RDiscount implements the basic protocol popularized by RedCloth and adopted
== Usage
the Discount processor available via a Ruby C Extension library.
and passes the Markdown 1.0 test suite. The RDiscount extension makes
language in C. It implements all of the language as described in
Discount is an implementation of John Gruber’s Markdown markup

def initialize(text, *extensions)

NOTE: The :filter_styles extension is not yet implemented.

* :fold_lines - RedCloth compatible line folding (not used).
the source text.
* :filter_html - Do not output any raw HTML tags included in
* :filter_styles - Do not output