How Markdown becomes a PDF that prints properly
A PDF is a fixed layout. Markdown has no layout at all. The gap between the two is where most "Markdown to PDF" tools fall down: they render the text as one endless web page, then let the browser slice it into pages wherever the cut happens to land. You get a table header on one page and its rows on the next, a code block sawn in half, and a heading orphaned at the bottom of a page with nothing under it.
MDtoDOCX converts Markdown to semantic HTML first, then applies a print stylesheet built for pagination. Headings carry page-break-after: avoid so they always stay with the paragraph that follows. Table rows are marked page-break-inside: avoid, and the header row repeats on every page a long table spans. Code blocks are kept whole when they fit on a page and are split only at line boundaries when they do not. Images are scaled to the printable width and are never cut across a page.
Fonts that are actually embedded
The PDF embeds the fonts it uses, so it looks the same on a phone, a Linux laptop and the university print shop. You choose the body font from the option bar. Code always uses a monospace face with the same character width, so column alignment in tables drawn with spaces survives.
Text stays text
Some converters rasterise the page to an image and wrap it in a PDF. That kills search, copy-paste and screen readers, and it produces a 10 MB file for a two-page document. MDtoDOCX writes real text, real links and real headings into the PDF. The result is small, searchable and accessible, and Ctrl-F works.
Page size, margins and page numbers
A4 and US Letter are one click apart. Margins default to 2.54 cm on all sides, the same as a new Word document, so a PDF and a .docx exported from the same Markdown line up page for page. Pro adds page numbers in the footer, a clickable table of contents at the front, and the ability to paste your own CSS to control everything from font sizes to running headers. See Markdown to PDF with CSS.
Equations and diagrams
LaTeX between $ signs is typeset with a KaTeX-class renderer and printed as crisp vector glyphs, not screenshots. Mermaid code blocks are rendered to SVG and embedded, so flowcharts print sharp at any zoom. Both are Pro features, previewed free. See Markdown to PDF with LaTeX and Markdown to PDF with Mermaid.
Why the free tier runs locally
For most documents the PDF is produced by your own browser's print engine, driven by our stylesheet. Nothing is uploaded, and there is no queue. Pro users can also send large or batch jobs to our server renderer, which uses the same stylesheet in a headless Chromium and deletes the files after 24 hours.