pub fn normalize_document(doc: Document) -> Result<Document, ParseError>Expand description
Primary entry point for normalizing a crate::document::Document after parsing.
Per-card normalization:
- Payload field names โ Unicode NFC.
- Card body โ bidi-stripped + HTML comment fence repair (spec ยง7). YAML field values pass through verbatim.
Idempotent โ calling multiple times produces the same result.