Expand description
Template definition and YAML parsing.
A Template is a YAML-serializable container for:
- Metadata (name, version, parent template reference)
- Page settings (dimensions, margins)
- Style definitions (character and paragraph styles)
- Markdown-to-style mappings
Templates support inheritance via the extends field, allowing
templates to build upon each other like CSS cascading.
Structsยง
- Markdown
Mapping - Maps markdown elements to style names.
- Page
Style - Page dimensions and margins with optional fields (for YAML).
- Template
- A complete YAML template.
- Template
Meta - Template metadata (name, version, parent reference).