Skip to main content

render_diagram

Function render_diagram 

Source
pub fn render_diagram(
    input: &str,
    format: OutputFormat,
    config: &RenderConfig,
) -> Result<String, RenderError>
Expand description

Detect, parse, and render a diagram in one call. Detect, parse, and render a diagram in one call.

This is the primary entrypoint for both CLI and WASM adapters. Adapter-specific policy (format defaults, color resolution) should be applied to config before calling this function.