Easily print GitHub markdown as beautiful PDFs that – in Chrome – immediately download
Posted by jpluimers on 2017/04/26
Printing Markdown with GitPrint
Simply view any Markdown file on GitHub, then in your URL bar replace the github.com part of the URL with gitprint.com — your markdown file will be rendered to a beautiful, printable PDF.
Try an example https://gitprint.com/jquery/jquery/blob/master/README.md
Every once in a while I feel like I’ve been living under a stone for years. Today is such a day as gitprint has been around since 2014 and I only noticed it until now.
It’s cool as it prints any github page (including Markdown, RestructuredText, etc) as a PDF file.
Notes:
- The PDF file is named after the url. For the above example, the PDF is
gitprint__-jquery-jquery-blob-master-README.md.pdf
- In my browsers, it directly starts downloading the PDF file.
- There is a bookmarklet on the gitprint home page for easy browser integration
- There is a gitprint Chrome Extension for even better integration into chrome (it modifies the github.com pages to add printing support)
- It’s https too (truckloads of web-sites could learn from that).
Edit 20211215
The domain gitprint.com is gone (see [Wayback/Archive] Issues · adamburmister/gitprint.com), but the source code is still on github:
- [Wayback/Archive] adamburmister/gitprint.com: Render Github markdown documents for printing
- [Wayback/Archive] adamburmister/markdown-pdf: Markdown to PDF converter
–jeroen
Leave a Reply