Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- %w(Markdown RDiscount Maruku BlueCloth).each do |lib|
- begin
- require lib.downcase
- ::Markdown = Object.const_get(lib) unless lib == "Markdown"
- break
- rescue LoadError
- nil
- end
- end
Add Comment
Please, Sign In to add comment