Created
December 21, 2011 22:32
-
-
Save gfontenot/1508020 to your computer and use it in GitHub Desktop.
Simple markdown converter for Maruku (Used with Marked)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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