joonyou
5/7/2010 - 4:29 PM

simple markdown conversion

simple markdown conversion

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"