How to export Markdown to a well-formatted PDF on a Mac
For a quick result, a Mac user can open the Markdown file in any app that renders it as a formatted page and then choose Print and Save as PDF. More control over margins, headers, page breaks and landscape layouts requires a tool such as Pandoc or a Markdown editor with configurable PDF export. Pandoc is free and scriptable, suited to repeated use, though it needs a LaTeX engine or a CSS route through HTML and some setup time. Editors such as Obsidian, Typora, iA Writer and Coffee differ in page size, margin, page number and template options. Since Markdown has no page settings, all layout choices are made in the tool rather than the file.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in