Skip to main content

Module render

Module render 

Source
Expand description

Render pipeline: the path from Markdown source to an HTML fragment - parsing, syntax-highlight splicing, sanitizing, title derivation, in that order, sanitized once, after splicing - plus the single deep workflow entry point (convert) that reads the source, renders, and writes the page with per-worker private-output safeguards.

Structs§

ConvertOutcome
What a successful convert wrote: the output file plus the workflow’s stage-by-stage timing record.
ConvertRequest
One render request for convert: a Markdown input, a destination, and the render options. verbose is deliberately absent — diagnostics are the caller’s presentation concern, and ConvertOutcome::timings carries everything a caller needs to print them.
StageTimings
Wall-clock time spent in each stage of one render workflow, plus the workflow’s total. Reported to stderr by the CLI’s --verbose output. Stages that do not run for a given invocation (sanitize under --unsafe-html, assemble under --bare) report zero.

Enums§

RenderError
Why a convert workflow failed, typed per failure site with the underlying io::Error and the path it concerns, so callers keep printing their own messages instead of the library doing it for them.

Functions§

convert
Render one Markdown file to HTML: the render pipeline’s single deep entry point.
render_markdown_document
Render Markdown supplied in memory as a complete, self-contained HTML page.