Created
September 3, 2012 03:47
-
-
Save rob-mcgrail/3606611 to your computer and use it in GitHub Desktop.
Tiny markdown document server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $ gem install sinatra bluecloth | |
| require 'rubygems' | |
| require 'bluecloth' | |
| require 'sinatra' | |
| get '/' do | |
| f = File.open(ARGV[0]) | |
| BlueCloth.new(f.read).to_html | |
| end | |
| # $ ruby markdown.rb /absolute/file/path.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment