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§
- Convert
Outcome - What a successful
convertwrote: the output file plus the workflow’s stage-by-stage timing record. - Convert
Request - One render request for
convert: a Markdown input, a destination, and the render options.verboseis deliberately absent — diagnostics are the caller’s presentation concern, andConvertOutcome::timingscarries everything a caller needs to print them. - Stage
Timings - Wall-clock time spent in each stage of one render workflow, plus the
workflow’s total. Reported to stderr by the CLI’s
--verboseoutput. Stages that do not run for a given invocation (sanitizeunder--unsafe-html,assembleunder--bare) report zero.
Enums§
- Render
Error - Why a
convertworkflow failed, typed per failure site with the underlyingio::Errorand 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.