pub fn parse_frontmatter_validated(
source: &str,
) -> (Option<FrontmatterConfig>, Vec<FrontmatterDiagnostic>, &str)Expand description
Parse optional front-matter from a Shape source string, with validation.
Returns (config, diagnostics, remaining_source) where:
configisSomeif a---delimited TOML block was found and parseddiagnosticscontains any validation errors/warningsremaining_sourceis the Shape code after the front-matter
Shebang lines (#!...) at the very start are skipped before checking
for front-matter.