Expand description
decree.frontmatter - YAML frontmatter structural rules.
Applies to files with --- delimited YAML frontmatter:
- Markdown (.md)
- MDX (.mdx)
Does NOT handle:
- Astro (.astro) - uses JS/TS frontmatter, not YAML
- Standalone YAML files - use decree.yaml
- TOML files - use decree.toml
Structs§
- Frontmatter
- The frontmatter decree plugin.
- Frontmatter
Config - Configuration for the frontmatter decree.
Parsed from
.dictate.tomlunder[decree.frontmatter].
Functions§
- config_
from_ decree_ settings - Convert
DecreeSettingsfrom .dictate.toml toFrontmatterConfig. - init_
decree - Create plugin with default config.
- init_
decree_ with_ config - Create plugin with custom config.
- lint_
source - Lint source with default config (for backwards compatibility).
- lint_
source_ with_ config - Lint source with custom config.