1. RDiscount
http://github.com/rtomayko/rdiscount
[b]Usage[/b]
RDiscount implements the basic protocol popularized by RedCloth and adopted by BlueCloth:
Additional processing options can be turned on when creating the RDiscount object:
Inject RDiscount into your BlueCloth-using code by replacing your bluecloth require statements with the following:
2. BlueCloth
http://deveiate.org/projects/BlueCloth
[b]Usage[/b]
Tip : # BlueCloth has set the top-level 'Markdown' constant
http://github.com/rtomayko/rdiscount
> sudo gem install rdiscount
[b]Usage[/b]
RDiscount implements the basic protocol popularized by RedCloth and adopted by BlueCloth:
require 'rdiscount'
markdown = RDiscount.new("Hello World!")
puts markdown.to_html
Additional processing options can be turned on when creating the RDiscount object:
markdown = RDiscount.new("Hello World!", :smart, :filter_html)
Inject RDiscount into your BlueCloth-using code by replacing your bluecloth require statements with the following:
begin
require 'rdiscount'
BlueCloth = RDiscount
rescue LoadError
require 'bluecloth'
end
2. BlueCloth
http://deveiate.org/projects/BlueCloth
> sudo gem install bluecloth
[b]Usage[/b]
require "bluecloth"
markdown = BlueCloth.new("<p>Hi</p>") or Markdown.new("<p>Hi</p>")
markdown.to_html
Tip : # BlueCloth has set the top-level 'Markdown' constant
::Markdown = ::BlueCloth unless defined?( ::Markdown )