Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created May 15, 2009 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topfunky/112387 to your computer and use it in GitHub Desktop.
Save topfunky/112387 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Textileise things.
# Take Textile markup on STDIN, and output HTML to STDOUT
require "rubygems"
require "redcloth"
print (RedCloth.new STDIN.read).to_html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment