MermaidDiagram

Mermaid-JS diagrams code generator

Chat Example

Programmatic Access

LLMResourceFunction["MermaidDiagram"][txt]

generates Mermaid-JS diagram code for txt.

LLMResourceFunction["MermaidDiagram"][txt,tp]

generates code for a diagram of type tp.

Details

Mermaid-JS lets users create diagrams and visualizations using text and code.
This function prompt takes two arguments.
The first is with the text or code for which the diagram code is generated.
The second specifies the type of diagram. (By default it is "concise mind-map".)
For other types of diagrams, use the names listed in Mermaid-JS documentation.
The prompt works on large texts and on software code.

Examples

Prompt Source

See Also

Publisher Information