Replies: 2 comments
-
I also need a programmatic access to a My workaround so far has been to patch the mermaid library (using patch-package) in order to add Is there any chance for that change to be integrated into the library? If not, what are the alternatives? |
Beta Was this translation helpful? Give feedback.
-
@thomas-jakemeyn was thinking of doing the same, but I thought I'd try here first. I don't understand why they limited the interfaces they return in the parser, since they need to support all of them internally anyway. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I would like to get access to the internal Mermaid representation of a parsed flowchart diagram in order to know e.g. which nodes are before and which nodes are after a particular node. Then I would be able to dynamically construct a new textual representation of a subset of that diagram and pass it to Mermaid for rendering again.
I noticed in the docs that there used to be a
mermaid.mermaidApi
object which now seems to be deprecated.I also tried with the
@mermaid-js/parser
parse
method, but it seems that it does not support diagrams of typeflowchart
.So, is there a way to do it?
Beta Was this translation helpful? Give feedback.
All reactions