FeaturesAlex Lins (Bao)
·about 17 hours agoAlaz Oz·about 16 hours ago
Done
Support for mermaid embed config
Currently mermaid blocks doesn't support configs. It shows "The diagram uses unsupported interactive or external content"
Expected
It should render the flowchart in the said look and theme

6 Comments
Sign in to comment
AL
·about 17 hours agoThanks for reporting this! I can see you've shared a screenshot showing what you'd like mermaid diagrams to look like with custom config applied.
To help us move this forward, could you clarify a couple of things:
- What specific mermaid configs are most important to you? (e.g., theme, font size, colors, layout direction?) Are there particular diagrams or use cases where the default rendering doesn't work for your needs?
- How are you currently embedding the mermaid blocks? Are you using a code fence with a language tag, or another method? And when you say "unsupported interactive or external content" — is that the exact error message you're seeing, or a description of what happens?
This'll help us understand the scope and priority.
AO
- handDrawn look is my number 1 priority.
- Codefence with mermaid tag.
Finally some relevant questions 🙏 Thankyou
Thanks for the clear example! Mermaid diagrams now support frontmatter config, so your diagram renders with
look: handDrawnexactly as written. You can also settheme(e.g.forest,neutral,dark) andlayout(dagre,elk), either globally underconfig:or per diagram type (e.g.config: flowchart: look: handDrawn). We also upgraded to Mermaid 12.1. A couple of limits: only appearance settings (look, theme, layout, handDrawnSeed) are supported for now, so custom colours viathemeVariablesand%%{init: …}%%directives still aren't. This will ship in the next release.I am not sure what you meant by globally
Does it applies to all the diagrams on a page?
Or All the diagrams in the space?
And, thanks ❤
Sorry, "globally" was a poor choice of word. The config only applies to the diagram it's written in, i.e. that one mermaid code block. It doesn't affect other diagrams on the page or in the space.
What I meant is the difference between these two forms, both inside a single code block:
applies to whatever diagram follows it, and
applies only if that block is a flowchart.
So for now, each diagram that should be hand-drawn needs its own frontmatter. If a page-wide or space-wide default would be useful to you, let us know and we'll track it as a separate request.
Thanks for the clarification. ❤ It is good enough for the most part.