/** * A web page's HTML read the way a Wikipedia article is: its metadata, the part that is the text, * that text as a list of units (paragraphs, lists, tables, code, figures, quotations, headings), * a lead, and sections that open on their own. Used by server/page.ts; docs/pages.md says why * each rule is what it is. * * 1. Metadata: title, site, author, date, description, canonical address, each from the first * source that has it (Open Graph, JSON-LD, , then the page itself). Absent means absent: * nothing is guessed from layout or from Last-Modified. * 2. The container: the largest
, else
, else , without navigation, asides, * headers, footers, forms, and blocks named for comments, sharing, related posts, sidebars or * newsletters. * 3. Units: the container flattened, runs of

made into paragraphs, images lifted out of * paragraphs into figures of their own, layout tables walked through. A