"""Convert Surya's layout-div HTML into what ParseBench scores.
Surya emits one
per block, bboxes
normalised 0-1000. ParseBench scores two things from a parse:
markdown text metrics (content faithfulness, semantic formatting, tables)
layout_pages visual grounding (per-element box, label, and plain text)
The conversion is deliberately compact and deterministic:
- markdown, never pretty-printed HTML (their title scan is line-based)
- headings as '#' lines, bold as '**', sup/sub/u kept as inline HTML,
strikethrough as '~~', math as $...$ / $$...$$ (their latex extractor
never reads