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.

Card bodies are already-normalized content (import-time); they carry through unchanged. YAML field values pass through verbatim. Idempotent.