How to generate PDF from markdown using pure ruby

后端 未结 4 846
野趣味
野趣味 2020-12-30 00:08

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

相关标签:
4条回答
  • 2020-12-30 00:24

    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/

    0 讨论(0)
  • 2020-12-30 00:26

    Prawn: The Pure Ruby PDF Generation Library
    http://www.rubyinside.com/prawn-ruby-pdf-library-987.html

    0 讨论(0)
  • 2020-12-30 00:35

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

    0 讨论(0)
  • 2020-12-30 00:41

    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.

    0 讨论(0)
提交回复
热议问题