Skip to main content

validate

Function validate 

Source
pub fn validate(
    pages: &[Page],
    document: &Document,
    rendered_markdown: &str,
) -> ConversionReport
Expand description

Compares what was extracted against what was rendered, and tallies the block types found, so every conversion produces an auditable report rather than a silent best-effort guess.

The headline recovery signal (ConversionReport::recovery_ratio) is a non-whitespace character count, not a word count – see that method’s rustdoc for why. Word counts are still gathered and reported alongside it as an informational secondary signal (see kopitiam-wwr).