How to generate PDF from markdown using pure ruby

后端 未结 4 857
野趣味
野趣味 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/

提交回复
热议问题