Skip to main content

Module render

Module render 

Source
Expand description

Serializers: Document → Markdown | JSON | text.

Pure functions — no I/O, no globals — so they are unit-testable on small in-memory documents. Every block type is covered here; extractors only have to produce a sane Document.

Structs§

RenderOpts
Options that influence rendering.

Enums§

OutputFormat
Output format for the renderers.

Functions§

render
Render a document in the requested format.
to_json
Document → JSON.
to_markdown
Document → Markdown.
to_text
Document → plain text: structure without markup.