How to convert Markdown to PDF
- Paste the Markdown, or open or drop a .md file.
- Pick the paper size, font and margins.
- Click “Save as PDF” and choose “Save as PDF” in the print dialog.
Good to know
- Tables fill the page width and are kept together on one page when they fit.
- Headings stay with the paragraph that follows them.
- Math in
$…$is inline; math in$$…$$on its own lines is centered. - Long code lines wrap, so nothing is cut off at the margin.
Long documents and page breaks
The PDF follows the page size and margins you chose, and your browser decides where pages break. Headings are kept with their first paragraph, tables and code blocks are moved to the next page when they would otherwise be split in two, and footnotes are collected at the end of the document. In the print dialog you can also turn off the browser's own header and footer if you do not want the date and address printed on each page.
Need a file you can edit? The same text downloads as Word (.docx) with the same tables and editable equations.