Skip to main content

Module structured

Module structured 

Source
Expand description

Structured conversion: emit the page as an ordered list of typed blocks, serialized to JSON. Links are preserved as reference indices (same scheme as the text path), so structured output is both machine-parseable and token-frugal inline.

Structs§

Block
StructuredDoc

Enums§

BlockKind

Functions§

html_to_structured
Build a structured document. Each non-empty line of the reference-style text becomes a paragraph block; references are carried alongside.
to_json