How to print from GitHub

前端 未结 20 1165
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 20:17

If I want to print a markdown file from GitHub as it appears on screen, for example: https://github.com/RestKit/RestKit/blob/master/Docs/Object%20Mapping.md

Then how can

20条回答
  •  遥遥无期
    2021-01-29 20:33

    Another option is pandoc. After installing (it supports Windows, Linux and Mac OS), the command would be along the lines of pandoc file.md -f markdown --smart -s -o file.pdf

    Then print the resulting PDF file.


    There is also this online converter, which produced the nicest output for me: http://www.markdowntopdf.com/

    Pandoc has an online demo as well.

    Update 2020: on macOS Catalina this command worked for me:

    brew cask install basictex
    pandoc README.md -f markdown+smart -s -o out.pdf --pdf-engine=/Library/TeX/texbin/pdflatex --pdf-engine=xelatex
    

提交回复
热议问题