Skip to content

Instantly share code, notes, and snippets.

@danmichaelo
Created July 15, 2011 21:43
Show Gist options
  • Select an option

  • Save danmichaelo/1085604 to your computer and use it in GitHub Desktop.

Select an option

Save danmichaelo/1085604 to your computer and use it in GitHub Desktop.
wiki markup to html command line tool using wikicloth
#!/usr/bin/env ruby
require 'rubygems'
require 'wikicloth'
contents = ARGF.read
@wiki = WikiCloth::Parser.new({
:data => contents,
:params => { "test" => "World" }
})
puts @wiki.to_html()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment