Skip to main content

Module convert

Module convert 

Source
Expand description

Output dispatcher: routes an HTML document to the requested format.

Modules§

markdown
Markdown conversion. Unlike the text path, markdown keeps links inline as [text](url) for maximum fidelity — the right trade-off when the consumer wants a faithful, re-renderable document rather than minimal tokens.
structured
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.
text
Plain-text conversion with reference-style URL preservation.

Structs§

Converted
A converted document: the rendered content plus any preserved references.

Functions§

convert
Convert HTML to the requested content type.