Export

How to Convert Markdown to PDF on Mac & iPhone

To turn a Markdown file into a PDF on a Mac, open it in QuickMark and choose File ▸ Export ▸ Export as PDF… (or press ⇧⌘E). On an iPhone or iPad, tap the export menu and pick Export as PDF, then save it to Files. That's the whole job — the rest of this post shows what you get and the couple of settings worth knowing.

The starting point is any Markdown document, rendered. Here's the file we'll export — a trip budget with a heading, a table, a checklist, and a code block:

A Markdown document rendered in QuickMark on Mac: a 'Trip Budget — Tokyo' heading, a costs table with right-aligned numbers, a checklist with two items ticked, a note callout, and a shell code block, with a heading outline in the right sidebar
Any rendered document is one command away from a clean PDF — headings, tables, checklists and code all carry over.

On a Mac

Everything lives in the File ▸ Export menu. PDF is the first item, on ⇧⌘E:

QuickMark's File menu open on Mac with the Export submenu showing Export as PDF (Shift-Command-E), Export as HTML, Export as PNG, Export as EPUB, and Export as Word (.docx)
File ▸ Export ▸ Export as PDF… — PDF, HTML, PNG, EPUB and Word all live in the same menu.
  1. Open your .md file and switch to Preview or Split so you can see the rendered version.
  2. Choose File ▸ Export ▸ Export as PDF… (⇧⌘E).
  3. Pick a name and location, and save.

Because the Mac export runs through the print pipeline, the PDF is paginated — proper Letter or A4 pages that honour File ▸ Page Setup. If you'd rather use the system dialog, ⌘P and then Save as PDF works too; the Export command just skips a step.

On iPhone & iPad

Open the document, tap the export button (the menu in the toolbar), and choose Export as PDF. QuickMark builds the PDF and hands it to the system share sheet, so you can Save to Files, AirDrop it, or send it straight into Mail or Messages.

The same trip-budget document rendered in QuickMark on an iPhone, showing the heading, costs table, and checklist ready to export
The same document on iPhone — export to PDF and it lands in Files, ready to share.

The iOS PDF comes out as one continuous page rather than sliced into sheets, with a navigable heading outline baked in so readers can jump around it in Files or Books. It scrolls just like any PDF.

What carries over

The PDF matches what you see in the preview, with a couple of deliberate choices:

  • Your reading theme and font size come along, so the document looks the way you set it up.
  • Exports always use a light background — even if you read in dark mode — so the PDF prints and shares cleanly instead of coming out with a black page.
  • Tables keep their column alignment, code blocks keep their syntax colours, and math and diagrams render exactly as they do on screen.

Beyond PDF

PDF is the one people reach for most, but the same Export menu also gives you Word (.docx), HTML, EPUB, and PNG image — handy when you need to hand a document to someone who lives in Word, or drop a rendered snippet into a slide. They all work the same way: pick the format, choose where it goes, done.

New to previewing Markdown on a Mac? Start with how to preview Markdown on Mac by pressing Space — then export whatever you're reading straight to PDF.

Get rendered Markdown previews everywhere

QuickMark is a free, native Markdown app for Mac, iPhone & iPad — live preview, export, and publish built in.

Download on the App Store or try the live preview in your browser →