That would be incredible. I'm definitely willing to take it further (but I still have to lots to learn!).
mermaid is based on graphviz's dot syntax which is a bit more powerful (although not 100% compatible). Graphviz/Dot also has some python libraries for dot available which is nice too. If you're interested, here's a bit of sample code I've used in the past which generates the dot. There's lots more where this came from too, just need to figure out how to make it work for Leo :-) ``` import networkx as nx import pydot as pd G = nx.DiGraph() # DEFINE NODES G.add_node('Thing1', label='Thing 1' shape='mRecord') G.add_node('Thing2', label='Thing 2', shape='mRecord') # DEFINE EDGES # stage 1 G.add_edge('Thing1', 'Thing2', label='') # reverse the graph, since edges are added in dependsOn order pdg = nx.nx_pydot.to_pydot(G.reverse()) # type: pd.Dot pdg.set_graph_defaults(rankdir='RL') print(pdg) pdg.write("./_temp/thing.gv.svg", format="svg") ``` Kevin On Thursday, August 13, 2020 at 2:31:36 PM UTC-4 tbp1...@gmail.com wrote: > Now that I've looked at mermaid a little more, I think that you could > write the mermaid diagram syntax in a Leo node - since it's just text - > ,and then run Mermaid on it using the command line version of mermaid. If > I'm right about this, I would be willing to try adding an @mermaid node > type to viewrendered3 if you decide that Leo is promising enough for your > project. It looks like it might be something that I'd like using myself. > > > On Thursday, August 13, 2020 at 1:32:49 PM UTC-4, Thomas Passin wrote: >> >> The VR3 plugin can display the diagram outputs. It wouldn't update >> automatically when you made a change - you would have to refresh the plugin >> view to see that changed image. >> >> It *may* be possible to get mermaid to run in a panel inside Leo. >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/9d293e49-c4dc-48e3-b8f2-62e96e0c740en%40googlegroups.com.