Important: This repo and gem are unmaintained! If you are interested in maintaining, please contact me at t_leitner@gmx.at.
This is a converter for kramdown that uses Prawn to converter a kramdown document to PDF.
Note: Until kramdown version 2.0.0 this converter was part of the kramdown distribution.
gem install kramdown-converter-pdf
require 'kramdown'
require 'kramdown/converter/pdf'
Kramdown::Document.new(text).to_pdf
Clone the git repository and you are good to go. You probably want to install
rake
so that you can use the provided rake tasks.
MIT - see the COPYING file.