Skip to main content

Module strict

Module strict 

Source
Expand description

Per-entity strict checks over raw markdown bytes.

Complements the tolerant entity::parser::parse_markdown — every invariant the tolerant parser papers over (missing title, missing frontmatter, unknown keys, unbalanced brackets) is checked here against the raw bytes before the archive is accepted.

Functions§

validate_strict
Run every strict check against one entity. raw_bytes is the archive’s markdown bytes for this entity (pre-canonicalization, so line endings may still be CRLF and a BOM may still be leading).