Skip to content

Advanced: settings, options and details for people who want full control. Most people only need Studio.

Advanced ​

For people who want more control than Studio gives, or who run the tool from scripts and AI assistants.

If you only want to pick a page style, a font and a header, Studio is enough:

sh
npx -y markdown-pdf-export studio

Everything Studio does ends up in a settings file. The pages below show how to write that file yourself and what else it can do.

PageRead it when you want to
Settings fileknow where settings live, use a different setup per project, or use the short presets
Per documentchange one document only, from its front matter
Header and footeradd page numbers, a title, a date or a logo to every page
Stylingchange fonts, code colours, add your own CSS or force page breaks
Contentwrite maths, add a table of contents, use emoji or line breaks
Command linesee every command and flag, or export from scripts and CI
Assistant toolsconnect an AI assistant by hand, or see what it can ask for
Browserchoose which browser draws the PDF, or fix "no browser found"
Recipesstart from a ready-made header and footer

Reference pages, for looking things up:

PageContents
All settingsevery key, its values and its default
Placeholderspage numbers, dates, title and your own variables in headers and footers
Header and footer referencethe full header and footer format and every element type

Released under the MIT License.