Parse markdown files and output PDFs that resemble GitHub's markdown rendering.
- Paragraphs
- Blockquotes
- Codeblocks
- Syntax highlighting provided by Chroma
- All kinds of emphasis:
- Bold
- Italic
Code
Strike- Links
- Images
- jpeg, png, and gif*
- Only the first frame of a gif is drawn to the pdf ๐
- jpeg, png, and gif*
- Headers
- Horizontal Rules
- Links
- Links on images
- External Links
- Tables
- No Emoji ๐
- No SVG
- No Inline HTML
brew tap tcd/taps
brew install tcd/taps/md2pdf
go get -u github.com/tcd/md2pdf
cd $GOPATH/github.com/tcd/md2pdf
make install # GO111MODULE=on go install
# will generate markdown-file.pdf in your current directory.
md2pdf path/to/markdown-file.md
- mandolyte/mdtopdf - Markdown to PDF
- ajstarks/deck - Slide Decks
- johnfercher/maroto - A maroto way to create PDFs.