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
Kroki diagram type (case-insensitive) — e.g. "plantuml", "mermaid", "graphviz", "erd". See Kroki's supported types.
populates a DiagramDescription with the diagram source and optional DiagramConfig overrides (size, style, output format, Kroki options).
The enclosing <section> is supplied via the SECTION context parameter, so calling this outside a DslSlide content{} block is a compile-time error.
fun DslSlide.diagram(diagramType: DiagramType, diagramBlock: DiagramDescription.() -> Unit): ERROR CLASS: Ambiguity: diagram, [com/kslides/diagram, com/kslides/diagram]
Type-safe overload of diagram taking a DiagramType enum instead of a raw Kroki type string, so a mistyped diagram type is a compile error. Delegates to the String overload.