When Pandoc creates a standalone document, it uses a template for the output. A template is essentially a document with some placeholder variables, where metadata and your processed Markdown text will be inserted. Which metadata will be used in a template depends on the output format; you can get a full list of variables for your output in the Pandoc manual.1 Pandoc automatically sets some metadata, described in the manual, but you can specify other metadata in the header.
9. Using Templates
Get Introducing Markdown and Pandoc: Using Markup Language and Document Converter now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.