pub fn render_blocks<H: RenderHooks + ?Sized>(
hooks: &H,
out: &mut String,
blocks: &[Block],
)Expand description
Render a sequence of blocks to HTML. Used by render_document
and by src-tauri’s render_hero_html_typed (Phase 4 PR4.5) to render
a Vec<Block> that didn’t come from a full Document (e.g. a hero
overlay).
Source-line caveat: this entry point has no per-block meta vec, so
every block renders without data-source-line. Callers that need
source-line annotations must walk meta-block pairs themselves (see
render_document). Today only render_document consumes meta;
nested-block walks (list items, callout bodies, blockquotes) are
also meta-free — data-source-line is a top-level-block-only
concern, matching the legacy transform_events emit shape.
H: ?Sized so the function can be called with &dyn RenderHooks or
with self: &Self from inside a trait default method (where Self
is not statically Sized). The hook surface is a thin dispatch
boundary; monomorphization across all concrete impls is not required.