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 utility. But I want a pure ruby solution.
Is there a way to convert markdown to pdf using only ruby without using command-line utilities?
Usage. Just focus the window containing your markdown file and use the convert command ( Packages > Markdown PDF > Convert ). The output PDF will be styled similar to the markdown on github.com , as well as any user styles you have added.
Installing Prawn Prawn is distributed via RubyGems, and can be installed the usual way that you install gems: by simply typing gem install prawn on the command line.
You can use https://github.com/walle/gimli
I made it just for this purpose. Though, I use textile. But gimli supports all formats supported by GitHub-Markup.
Prawn: The Pure Ruby PDF Generation Library
http://www.rubyinside.com/prawn-ruby-pdf-library-987.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With