Skip to main content

Module verify

Module verify 

Source
Expand description

Content verification module (R6).

Compares captured markdown content against the original web page to verify completeness and accuracy.

Checks: title, headings, paragraphs, code blocks, formulas, blockquote formulas, list items, links, and figure images.

Based on reference implementation from: https://github.com/link-foundation/meta-theory/blob/main/scripts/verify.mjs

Structs§

Heading
Heading with level and text.
MissingContent
Missing content detected during verification.
VerifyOptions
Verification options.
VerifyResult
Result of content verification.
WebContent
Content extracted from a web page for verification.

Functions§

normalize_code
Normalize code for comparison (more lenient than text).
normalize_text
Normalize text for comparison.
verify_markdown_content
Verify that markdown contains the expected web page content.