Mermaid icon indicating copy to clipboard operation
Mermaid copied to clipboard

Question - is it possible to use init directive, configure mermaid?

Open tmuras opened this issue 1 year ago • 1 comments

Is it possible to use init directive, e.g.: %%{ init: { 'flowchart': { 'curve': 'stepAfter', "defaultRenderer": "dagre" } } }%%

or frontmatter configuration, e.g.:

---
title: Hello Title
config:
  theme: base
  themeVariables:
    primaryColor: "#00ff00"
---

tmuras avatar Mar 06 '24 10:03 tmuras

I'm using the example from USAGE.md, but it does not seem to work for gitGraph.mainBranchName

Using extension version 6.0.1, with:

{{#mermaid:gitGraph
commit
commit
|
config.gitGraph.mainBranchName = trunk
}}

wimmuskee avatar Aug 04 '25 06:08 wimmuskee