pub fn canonical_document_format(format: &str) -> Option<&'static str>Expand description
Canonicalizes a format/language label to one of DOCUMENT_FORMATS.
Matching is case-insensitive and accepts the common aliases used when a
network is parsed (for example md for Markdown or plain-text for txt).