pub fn render(markup: &str) -> Result<Text>Expand description
Parse markup into styled Text.
Tag names are stored unresolved on the spans, so the returned Text renders
in whichever theme prints it. The Result therefore reports only genuine
syntax errors — an unmatched or mismatched closing tag. An unknown tag
name is not an error: it renders as a no-op, as it does upstream.