Michael Barton RSS

Archive

May
19th
Mon
permalink

Simple Ruby markdown script using BlueCloth and RubyPants

#!/usr/local/bin/ruby

require 'rubygems'
require 'bluecloth'
require 'rubypants'

puts RubyPants.new(BlueCloth.new(File.open(ARGV.shift).read).to_html).to_html