diagram

fun DslSlide.diagram(diagramType: String, diagramBlock: DiagramDescription.() -> Unit)

Embed a Kroki-rendered diagram inside a DslSlide content{} block. The diagram source is POSTed to Kroki; the resulting image is cached by filename so repeated renders of the same presentation do not re-hit Kroki.

Parameters

diagramType

Kroki diagram type (case-insensitive) — e.g. "plantuml", "mermaid", "graphviz", "erd". See Kroki's supported types.

diagramBlock

populates a DiagramDescription with the diagram source and optional DiagramConfig overrides (size, style, output format, Kroki options).

Throws

if called outside a DslSlide content{} block.