renanlecaro / mermaid-gdocs

Mermaidsjs wrapper for gdocs.
https://mermaid-gdocs.lecaro.me/
95 stars 16 forks source link

RFE: adding support for C4 Diagrams #28

Closed dabelenda closed 1 year ago

dabelenda commented 1 year ago

In our organization we standardized on writing C4 diagrams for context. We were searching a way to add diagrams to gdocs and found this application that seem very promising since mermaid can handle C4 diagrams (beta feature, but still better than nothing) see: https://mermaid.js.org/syntax/c4c.html

It would be great to add support for C4 diagrams, from what I understand it should be a tiny modification to this test https://github.com/renanlecaro/mermaid-gdocs/blob/master/src/index.js#L119

dabelenda commented 1 year ago

It seems I was right in my assumption that modification of the application was necessary to add new diagrams, but pointed to the wrong file: https://github.com/renanlecaro/mermaid-gdocs/blob/master/google%20scripts/Code.gs#L10-L21

dabelenda commented 1 year ago

Oh, you can ignore the snippet and add your C4 Diagram directly without caring about which type of diagram you added from the menu.

renanlecaro commented 1 year ago

An update should now be released with mermaid v10. I removed the graph suggestions from the menu and just linked to the help