Created
May 7, 2010 16:29
-
-
Save joonyou/393673 to your computer and use it in GitHub Desktop.
simple markdown conversion
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
require 'rubygems' | |
require 'bluecloth' | |
source_file = $*[0] | |
output_file = $*[1] | |
content = File.read(source_file) | |
File.open(output_file,"w") {|f| f.write BlueCloth.new(content).to_html } | |
puts "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment