DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

Add parser / functions for mermaid diagram?

Open happyshows opened this issue 9 years ago • 1 comments

Hi,

Since 0.6 already implemented parsing function for Graphviz diagram, is there any similar plan for mermaid diagram ?

happyshows avatar May 02 '15 16:05 happyshows

In short, yes. Trying to generalize the function so that creating the graph is separate from creating the rendering code. Right now, Graphviz DOT code is created from the node and edge definitions and placed into the graph object (the 'render_graph' function just pulls this pre-generated DOT code and displays with the 'grViz' function). The next step is to create mermaid graph code, place it in the graph object alongside the DOT code, and have it available for 'render_graph', which will be modified to have an argument for whether to render as Graphviz or mermaid.

rich-iannone avatar May 11 '15 19:05 rich-iannone