Turning a Markdown document into a PDF usually means two separate tools — a Markdown renderer and a PDF engine — but your browser already contains both: an HTML renderer and a print engine that can output PDF directly through its own "Save as PDF" option. This tool renders your Markdown to styled HTML using marked, applies print-friendly document styling (serif body text, proper heading hierarchy, syntax-highlighted-looking code blocks), and opens your browser's native print dialog where choosing "Save as PDF" produces the final file.
Because the PDF comes from your browser's own print engine rather than a JavaScript PDF library, text stays genuinely selectable and searchable in the output — not rendered as an image the way canvas-based PDF generators sometimes produce — and the typography, kerning, and page-break handling benefit from the browser's own mature print layout engine rather than a reimplementation of it.
Markdown elements map to sensible print styling automatically: headings get appropriate size hierarchy and spacing, code blocks get a dark background for readability, tables get borders and header shading, and blockquotes get a left border — all tuned for how these elements should look on a printed or PDF page rather than a web page.
Want HTML instead of a PDF? Use Markdown to HTML. Already have HTML and want a PDF? HTML to PDF skips the Markdown step.