Skip to content

Instantly share code, notes, and snippets.

@plusjade
Created August 4, 2012 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plusjade/3258911 to your computer and use it in GitHub Desktop.
Save plusjade/3258911 to your computer and use it in GitHub Desktop.
ruhoh + kramdown
class Ruhoh
module Converter
module Markdown
def self.extensions
['.md', '.markdown']
end
def self.convert(content)
require 'kramdown'
Kramdown::Document.new(content).to_html
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment