Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 12 lines (8 sloc) 0.315 kb
#!/usr/bin/env ruby
raise "gime a file!!" unless ARGV[0]
require 'rubygems'
#e.g. rdiscount, gem install rdiscount (or any other bluecloth flavour...)
require 'markdown'
text = Markdown.new(File.read(ARGV[0])).to_html
File.open('/tmp/markdown.html','w'){|f| f.puts text}
exec "google-chrome /tmp/markdown.html"
Jump to Line
Something went wrong with that request. Please try again.