Documentation
  • Welcome to Documentero Docs
  • General
    • Usage Limits and Quotas
    • Manage Account & Plans
    • Documentero Roadmap / Changelog
    • Privacy Policy
    • Frequently Asked Questions
  • templates
    • Templates Introduction & Tutorial
    • Template Upload/Re-upload
    • Organize Templates into Folders
    • Fields
    • Fields - Images
    • Fields - QRCodes
    • Fields - Links
    • Fields - HTML Support
    • Fields - Markdown Support
    • Fields - Mermaid Support
    • Fields - Formatters
    • Sections
    • Sections - Types & Options
    • Smart Fields
    • Smart Sections
    • Template Variables
  • Charts & Diagrams
  • Forms
    • Create Documents using Form
    • How to customize document form
    • Fields/Sections - General Settings
    • Field- Types & Options
      • Field - Multi Checkbox
      • Field - Checkbox
      • Field - Radio Button
      • Field - Datepicker
      • Field - Radio Select
      • Field - Select
      • Field - Multiline
      • Field - Number
      • Field - TextField
    • Conditional Fields & Sections
    • Shared Forms
      • Sharing Forms
      • Shared Form Configuration
      • Consent Form (GDPR)
      • Embeed & customize shared form on your website
  • Spreadsheet
    • Create Documents using Spreadsheet
  • API
    • Create Documents using API & JSON
    • Integrate with Documentero Cloud API
  • ChatGPT
    • Create Documents using ChatGPT
  • Integrations
    • Zapier
    • Make.com
    • Integrately
    • Pabbly Connect
    • Albato
    • Bubble.io Plugin
    • Webflow
    • Flutterflow
Powered by GitBook
On this page
  1. templates

Fields - Mermaid Support

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

PreviousFields - Markdown SupportNextFields - Formatters

Last updated 28 days ago

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 -

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>
<p class="mermaid">
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
</p>

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

https://mermaid.js.org/ecosystem/tutorials.html