How to convert Markdown to PDF
- Add your Markdown. Paste it, open a .md file, or press Export → PDF in the editor to bring your document here.
- Set up the page. Paper size, margins, theme and text size update the preview below as you change them.
- Control page breaks. Insert
<!-- pagebreak -->on its own line, or start each H1 or H2 on a new page. - Save. Press Save as PDF and pick “Save as PDF” in the print dialog.
Why print instead of a server converter?
Server tools upload your document and usually rasterise or re-typeset it. Printing from the browser keeps text as real text (searchable and copyable), keeps hyperlinks clickable, draws diagrams as vectors and keeps confidential documents on your machine. The trade-off is that the browser’s print dialog is one extra click.
Themes
- Clean sans: compact, modern, good for specs and handouts.
- Report serif: a book-like serif body with generous line spacing for proposals and essays.
- GitHub: looks like a README on github.com, useful for sharing repository docs.
Command-line alternatives
For automated builds, Pandoc (pandoc in.md -o out.pdf, needs a LaTeX engine) or md-to-pdf on npm (uses headless Chrome) produce PDFs in CI. For a one-off document this page is faster.