Frequently Asked Questions
Everything you need to know about Mermaid Toolkit for Google Docs™.
How do I create a diagram in Google Docs™?
Install Mermaid Toolkit for Google Docs™, then go to Extensions → Mermaid Toolkit → Insert Mermaid Diagram. Write your diagram in the built-in editor with live preview, then click Insert into Document.
What diagram types are supported?
Mermaid Toolkit for Google Docs™ supports flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, mindmaps, timelines, git graphs, C4 diagrams, and more — over 20 diagram types. See the full gallery.
Is Mermaid Toolkit for Google Docs™ free?
Yes. The add-on is free and open source. It renders diagrams 100% client-side in your browser — no servers, no data collection, no account required.
Can I import markdown with diagrams into Google Docs™?
Yes. Use the Import from Markdown feature to paste markdown containing Mermaid diagram blocks. The add-on parses headings, lists, tables, and renders all diagrams as images in your document.
Can I export my Google Doc™ back to markdown?
Yes. Use Extract to Markdown to convert your document — including all Mermaid diagrams — back into clean markdown. The original Mermaid code is preserved alongside the document content.
Does my data leave the browser?
No. Mermaid Toolkit for Google Docs™ runs entirely client-side inside the Apps Script sandbox. Your document content is never sent to external servers. See our Privacy Policy for full details.
My Mermaid code isn't being detected
The first line of your code block must start with a supported diagram keyword (e.g. graph TD, sequenceDiagram, erDiagram). Comments (%%) on the first line will prevent detection. Move any comments below the keyword line.
What permissions does the add-on need?
The add-on uses two OAuth scopes:
documents— to read code snippets, insert diagrams, and create native checkboxes via the Docs APIscript.container.ui— to display the editor and preview dialogs
It cannot access other files in your Google Drive™.
The add-on isn't showing in the Extensions menu
Try refreshing the page (Ctrl+R / Cmd+R). If it still doesn't appear, go to Extensions → Add-ons → Manage add-ons and verify that Mermaid Toolkit for Google Docs™ is installed and enabled.
Can I edit a diagram after inserting it?
Yes. Click on the diagram image in your document, then use Extensions → Mermaid Toolkit → Edit Mermaid Diagram. The editor opens with the original Mermaid code so you can modify and re-render it.
Can I convert all diagrams in my document at once?
Yes. Use the Preview All Diagrams feature to scan your entire document for Mermaid code blocks and render them all as images in one batch.
What happens to the Mermaid code after rendering?
The code block is replaced by the rendered diagram image. The original Mermaid source is stored in the image's alt text, so you can always edit it later or extract it back to markdown.
Still have questions? Contact us or start a discussion.