Fields - Mermaid Support

You can add Charts/Diagrams into your templates inside HTML/Markdown syntax.

You can include charts, diagrams, and other visual elements using the Mermaid syntax within designated fields of your document template. Supported diagram types include flowcharts, sequence diagrams, class diagrams, Gantt charts, and entity-relationship models and more.

Check Mermaid Tutorials & Syntax -https://mermaid.js.org/ecosystem/tutorials.html

This feature enables users to embed complex, structured visual content using simple, text-based definitions directly within their document generation workflow.

HTML/Markdown Template Fields

Both Markdown and HTML fields support mermaid elements passed as content

{*htmlField}
{!markdownField}

Usage in HTML fields

Include mermaid syntax in paragraph with class "mermaid"

<h1>This is header for diagram below</h1>
<pre class="mermaid">
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
</pre>

Usage in Markdown fields

Include mermaid syntax in starting with```mermaid and end syntax with ```

# This is header for diagram below

```mermaid
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
```

Sample Output

Last updated