Why convert a README to PDF?
A README is the front door of a project, but it lives on GitHub. Reviewers, clients, students and auditors often want a document they can annotate, attach to a ticket or read on a plane. Printing the GitHub page directly drags in navigation bars, sidebars and cut-off code. Converting the Markdown itself gives you a clean document that looks designed rather than screenshotted.
What carries over
- Headings, lists and tables — GitHub-flavoured Markdown is fully supported, including alignment in tables and nested lists.
- Code blocks — highlighted with the same grammars VS Code uses. Short blocks never split across pages.
- Images and badges — rebased to raw GitHub URLs when you import by link.
- Alerts — GitHub’s
> [!NOTE]style callouts keep their colour and icon-free, print-friendly styling. - Links — every link stays clickable in the PDF, and headings get anchors so a table of contents works too.
Tips for a great README PDF
- Turn on Table of contents in Style → Document for long READMEs.
- Use Landscape if your README has wide tables.
- Add
\newpagebefore big sections like API reference so they start on a fresh page. - Switch the code theme to a dark one for slides-style handouts.