pub fn check_section_format(
def: &SectionDef,
body: &str,
) -> Vec<SectionFormatViolation>Expand description
Evaluate one section body against its declared format. Returns
every violation in document order (the write path refuses with the
first; health reports all). A section declaring no content — or
one whose expression failed to compile, which the loader refuses
anyway — produces no violations (free-form).