lib/github/markups.rb (view raw)
1GitHub::Markup.instance_eval do 2 markup(:markdown, /md|mkdn?|markdown/) do |content| 3 Markdown.new(content).to_html 4 end 5 6 markup(:redcloth, /textile/) do |content| 7 RedCloth.new(content).to_html 8 end 9end