Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> Result<Document, Diagnostic>
Expand description

Parse strict HTML-inspired markup using a tested XML tokenizer. XML-only constructs, namespaces, unknown names, and implicit repair are rejected. Empty elements may use self-closing tags. Markdown indentation is preserved, not inferred or rewritten.