Md2pdf
π Generate PDFs from Markdown files
Install / Use
/learn @tcd/Md2pdfREADME
md2pdf
<!-- [](https://godoc.org/github.com/tcd/md2pdf) -->
About
Parse markdown files and output PDFs that resemble GitHub's markdown rendering.
What's Supported?
- 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 :pensive:
- jpeg, png, and gif*
- Headers
- Horizontal Rules
- Links
- Links on images
- External Links
- Tables
What Isn't Supported?
- No Emoji π
- No SVG
- No Inline HTML
Installation
Homebrew
brew tap tcd/taps
brew install tcd/taps/md2pdf
Building from Source
go get -u github.com/tcd/md2pdf
cd $GOPATH/github.com/tcd/md2pdf
make install # GO111MODULE=on go install
Usage
# will generate markdown-file.pdf in your current directory.
md2pdf path/to/markdown-file.md
Related Projects
- mandolyte/mdtopdf - Markdown to PDF
- ajstarks/deck - Slide Decks
- johnfercher/maroto - A maroto way to create PDFs.
License
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
345.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
summarize
345.9kSummarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for βtranscribe this YouTube/videoβ).
