I\'m currently using Kramdown to generate HTML from Markdown in Ruby. I know that I can generate a latex file using kramdown and convert it to pdf usaing a command line util
The wkhtmltopdf gem is also available: http://rubygems.org/gems/wkhtmltopdf
wkhtmltopdf