Skip to main content

Module render

Module render 

Source
Expand description

Render request bodies — one per entry point mdcast exposes: the markdown pipeline (mdcast render) and the data-driven typst template pipeline (mdcast render-template).

Structs§

RenderMarkdownRequest
Render a markdown document to target. Mirrors what the CLI’s render subcommand builds before handing a ResolvedDoc to a backend: the body after frontmatter extraction, the metadata that extraction produced, the brand spec, and the flags that change the pipeline.
RenderOptions
The pipeline flags mdcast render exposes, minus the ones that are meaningless over HTTP (--out, --assets DIR).
RenderTemplateRequest
Render a user-supplied typst template over structured data — the render-template path (TemplateDoc), which bypasses ResolvedDoc entirely.

Enums§

TemplateFormat
Output format for a template render. Html needs a server built with the typst-html feature; one built without it answers crate::ErrorCode::UnsupportedTarget.