How to generate PDF from markdown using pure ruby

Dimas Kotvan picture Dimas Kotvan · Dec 7, 2010 · Viewed 9.9k times · Source

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?

Answer

Fredrik Wallgren picture Fredrik Wallgren · May 1, 2011

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.