Skip to content

Instantly share code, notes, and snippets.

@msharp
Created August 6, 2012 07:24
Show Gist options
  • Save msharp/3271919 to your computer and use it in GitHub Desktop.
Save msharp/3271919 to your computer and use it in GitHub Desktop.
markdown command wrapper
#!/usr/bin/ruby
require 'rubygems'
require 'github/markup'
if ARGV.length == 1
f = GitHub::Markup.render(ARGV[0])
puts f
else
raise "Usage: markup <source_file> [ > <destination_file> ]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment