Skip to main content

normalize_document

Function normalize_document 

Source
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:

  1. Payload field names โ†’ Unicode NFC.
  2. Card body โ†’ bidi-stripped + HTML comment fence repair (spec ยง7). YAML field values pass through verbatim.

Idempotent โ€” calling multiple times produces the same result.