Skip to main content

Crate dictator_frontmatter

Crate dictator_frontmatter 

Source
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.
FrontmatterConfig
Configuration for the frontmatter decree. Parsed from .dictate.toml under [decree.frontmatter].

Functions§

config_from_decree_settings
Convert DecreeSettings from .dictate.toml to FrontmatterConfig.
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.