This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

FrontMatterParserOptions Pennington.FrontMatter

Options that control front-matter parsing behavior.

Properties

StrictUnknownKeys bool
When true, unknown YAML keys cause the deserializer to throw a YamlException instead of silently dropping the value. Independently of this flag, every unknown key is reported as a Warning-severity diagnostic via DiagnosticContext so dev overlays and build reports surface typos. Defaults to false (lenient); the engine flips the default to true in build mode.

Pennington.FrontMatter.FrontMatterParserOptions

namespace Pennington.FrontMatter;

/// Options that control front-matter parsing behavior.
public class FrontMatterParserOptions
{
    /// When true, unknown YAML keys cause the deserializer to throw a YamlException instead of silently dropping the value. Independently of this flag, every unknown key is reported as a Warning-severity diagnostic via DiagnosticContext so dev overlays and build reports surface typos. Defaults to false (lenient); the engine flips the default to true in build mode.
    
public bool StrictUnknownKeys { get; set; }
}