template-definition-heading-invalid
Reports a Template without exactly one leading H1 or with skipped heading levels.
What it does
Reports a Template whose first heading is not an H1, that contains another H1, or that increases heading depth by more than one level.
Why it matters
The Template’s heading hierarchy defines the required structure of its completed documents.
Examples
Non-passing
# {{title}}
# Second title
Passing
# {{title}}
## Context
### Constraints
When it applies
This Rule belongs to the configurable document-types group. It validates the Template definition itself, before completed typed documents are compared with it.
References
See Presswork Configuration for Templates and src/template.ts for heading compilation.