Skip to content

Instantly share code, notes, and snippets.

@gfontenot
Created December 21, 2011 22:32
Show Gist options
  • Save gfontenot/1508020 to your computer and use it in GitHub Desktop.
Save gfontenot/1508020 to your computer and use it in GitHub Desktop.
Simple markdown converter for Maruku (Used with Marked)
#!/usr/bin/env ruby
require 'rubygems'
require 'maruku'
def markdown(text)
html = Maruku.new(text).to_html_document
end
puts markdown(ARGF.read)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment