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 studioEverything Studio does ends up in a settings file. The pages below show how to write that file yourself and what else it can do.
| Page | Read it when you want to |
|---|---|
| Settings file | know where settings live, use a different setup per project, or use the short presets |
| Per document | change one document only, from its front matter |
| Header and footer | add page numbers, a title, a date or a logo to every page |
| Styling | change fonts, code colours, add your own CSS or force page breaks |
| Content | write maths, add a table of contents, use emoji or line breaks |
| Command line | see every command and flag, or export from scripts and CI |
| Assistant tools | connect an AI assistant by hand, or see what it can ask for |
| Browser | choose which browser draws the PDF, or fix "no browser found" |
| Recipes | start from a ready-made header and footer |
Reference pages, for looking things up:
| Page | Contents |
|---|---|
| All settings | every key, its values and its default |
| Placeholders | page numbers, dates, title and your own variables in headers and footers |
| Header and footer reference | the full header and footer format and every element type |
