How to generate PDF from markdown using pure ruby

安稳与你 提交于 2019-11-30 05:58:21

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

I haven't tried it myself, but there's md2pdf

The wkhtmltopdf gem is also available: http://rubygems.org/gems/wkhtmltopdf

Pandoc is a universal document converter which can convert documents in markdown, reStructuredText, textile, HTML, DocBook, or LaTeX to HTML, EPUB, Microsoft Word, TeX, PDF via LaTeX, Lightweight markup formats.

You can find it here. http://johnmacfarlane.net/pandoc/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!