Mermaid: allow more edges - over 500

Use case or problem

When doing a detailed skilltree analysis I have way more than 500 edges. ATM I get the following message:

Error parsing Mermaid diagram!

Too many edges

Proposed solution

Diagram syntax error
The same is in the mermaid.live editor. But it has a hin on how to get around it:

Error: Edge limit exceeded. 500 edges found, but the limit is 500.

Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.

Current workaround (optional)

Splitting the graph into multiple mermaids.

This is one of the many problems with mermaid. I would imagine such a diagram would be difficult to render correctly and to view. I think your currrent work around is probably the best solution. I haven’t had a lot of luck using the mermaid.initialise() option within obsidian to be honest. I suspect there is a bug in obsidian in how it passes the diagram over to the mermaid jacascript.