render
Validate and render Mermaid diagrams to PNG or SVG from source or structured JSON IR, returning the Mermaid source and image. Fails on render errors.
Instructions
Validate and render a diagram with Mermaid CLI 12. Pass ir (preferred) or Mermaid source. Returns the Mermaid source plus PNG image (and SVG if requested). Fails on render errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ir | No | ||
| theme | No | ||
| source | No | ||
| target | No | ||
| formats | No | ||
| save_dir | No |