Why the code block is the wrong end state
Mermaid is a text format with a renderer attached. Anything without that renderer shows the text: Word shows the text, a PDF printed from Word shows the text, and a reviewer who does not know the syntax sees punctuation instead of a process.
Screenshotting the rendered version works once. Then someone renames a step, and the picture is stale with no way to tell — the source and the image have drifted apart and nothing points it out.
What gets drawn
The four shapes it reads from Mermaid source are the ones that carry most documents:
- flowchart / graph — processes, decisions, loops.
- mindmap — a topic and its branches, indentation as hierarchy.
- gantt — phases against dates.
- pie and xychart — a small set of numbers that reads better as a shape.
In the document, and after it
On export the diagram is laid out and placed as an image in the .docx, sized to the text width, with a caption you write in Markdown. Export to PNG or SVG if the diagram is going somewhere else — a slide, a ticket, a README.
The code block stays in the Markdown. That is the difference between a document and a printout: the next revision redraws the diagram instead of hunting for the original file.
Questions this page gets
Is the diagram editable in Word?
No — it arrives as an image, because Word has no Mermaid renderer. Edit the source in JotDoc and export again; that is the loop that keeps the diagram and the text in step.
Which Mermaid diagram types work?
Flowcharts, mind maps, Gantt charts, and pie or xychart data charts. Sequence, class and state diagrams are not drawn and stay as code blocks.
Can the AI write the Mermaid for me?
Yes. Describe the process and let the AI draw it as a diagram, then export — the output is the same block, so you can edit the source by hand afterwards if you prefer.
Where to go next
- Delivery, in full — four formats, what stays editable, and why the source document outlives the file.
- The editor itself — every block type, the Markdown each one saves, and what survives export.
- Working on a Mac? The MindMax desktop app opens the same documents from Finder.