Skip to content

Instantly share code, notes, and snippets.

@joonyou
Created May 7, 2010 16:29
Show Gist options
  • Save joonyou/393673 to your computer and use it in GitHub Desktop.
Save joonyou/393673 to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment