Type Alias: Recovery

Recovery = "strict" | "lenient"

Controls how the pipeline handles reader errors encountered during HTML scanning. Corresponds to Rust Recovery.

  • "strict" — Propagate the error and stop (default).
  • "lenient" — Log the error via tracing and emit a verbatim token for the unrecognised region so that downstream tokens continue to flow.

This option is meaningful only for format: "html". Markdown parsing does not produce recoverable errors, so this option is ignored for Markdown input.