Markdown to PDF, laid out as real pages
Write or paste Markdown and see the exact pages your PDF will have: page numbers, a table of contents, tables that break cleanly between rows. It all runs in your browser; your document is not uploaded.
What happens to each part of your Markdown
Many Markdown-to-PDF converters hand the HTML to the printer and hope. Here every block is measured and placed on a page before you export, so you can see in the preview where each table, code block and diagram will land.
- Long tables
- Break between rows. The header row repeats at the top of every page the table continues on. How table breaks work
- Wide tables
- Text drops to 85%. Still too wide: the table gets a landscape page (or, if you choose, stays portrait at 75% with wrapped cells). Each case is listed under Layout notes.
- Code blocks
- Syntax colors for 25 languages. Long lines wrap instead of running off the page; the wrapped part is indented under the line, and line numbers (on for blocks of 12+ lines) mark where each real line starts. Blocks split between lines across pages.
- Chinese text
- Set in Noto Sans SC, mixed with the Latin text on the same line, the same on every computer. Copying or searching the PDF gives the real characters. Japanese kana use the same font; Korean uses your system font.
- Mermaid diagrams
- Flowcharts, sequence, Gantt, class and state diagrams are drawn as vectors with real text. A diagram with a syntax error shows the error and its source instead of disappearing.
- Images
- Linked by web address, or attached from your computer with the image button (or paste one). A picture that fails to load prints as a visible box with its address, never as a silent gap.
- Footnotes
- [^1] references are numbered in order and collected under Notes at the end of the PDF. In Word they become real footnotes.
- Page breaks
- Type <!-- pagebreak --> on its own line (\pagebreak and \newpage work too), or start every # or ## section on a new page in Page setup.
- Paragraphs and headings
- Paragraphs split between lines with at least two lines on each page. A heading never sits alone at the bottom of a page; it moves with the text it introduces.
- Not supported
- LaTeX math prints as typed. Raw HTML is kept but scripts, forms and embedded frames are removed.
Four document styles
Report puts a title block from your front matter at the top, numbers sections if you want, and runs the title and date along the top of each page. Memo starts with a To / From / Date / Subject block in a serif face. Plain looks like a README on GitHub. Client report opens with a cover page carrying your logo, the client's name and your brand color; see client reports.
Each style works on US Letter or A4 with narrow, normal or wide margins. Start from the project report template if you want a worked example.
Front matter it reads
Put these lines at the very top of the file, between two lines of three dashes. All are optional.
--- title: Fieldbook Rollout: Q3 Project Report subtitle: Mobile work orders for field crews author: Dana Whitfield client: Harbor Valley Water date: October 3, 2026 version: 2.0 ---
Memos also read to, from, cc and subject. Type [TOC] on its own line to put the table of contents exactly there.
Saving the PDF
Export PDF opens your browser's print dialog with the preview pages loaded. Pick Save as PDF as the destination and keep the scale at 100%. Page size and orientation are already set by the document, including landscape pages for wide tables.
We test the layout with Chrome's print engine, which Edge and Brave share. Safari and Firefox have their own; if you use one of them, compare the page count in its print preview with the editor's before you save, especially when the document has landscape pages.
| Browser | Where to choose PDF | Check |
|---|---|---|
| Chrome, Edge, Brave | Destination → Save as PDF | Margins: Default |
| Safari (Mac) | PDF menu, bottom left → Save as PDF | Scale 100% |
| Firefox | Destination → Save to PDF | More settings → untick Print headers and footers |
| iPhone, iPad | Print → pinch out on the preview → Share → Save to Files | — |
Need an editable file instead? Use the Word button, or the Markdown to Word converter.