Skip to main content

parse_recovering

Function parse_recovering 

Source
pub fn parse_recovering(
    markdown: &str,
    limits: &ParseLimits,
) -> Result<ParseReport, MarkdownParserError>
Expand description

Recovering parsing: bounded, and loss-reporting instead of fail-closed.

Returns whatever output could be produced together with a diagnostic for every recovered error and a ParseReport::complete flag that is false whenever any loss occurred. Never returns silently truncated output that claims to be complete.