claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Added support for the Mermaid diagrams in the fenced code. #198

Closed vozkych closed 2 years ago

vozkych commented 7 years ago

Hi,

I've added support for creating Mermaid diagrams in wiki content. Using a simple syntax located in the fenced code, you can create Flowcharts, Sequence diagrams and Gantt diagrams. In the case of a misspelled syntax, this is indicated by a red outline and a description in the popup window (works in the Preview and Show). Here are some previews: diagrampreview1 diagrampreview2

claudioc commented 7 years ago

Hi @vozkych

thank you very much for this integration. I think this will be useful for sure for some Jingo user out there!

I thought about it but at the end I decided not to merge this feature into the main Jingo repository, because the changes are quite substantial and add a bit of complexity on top of the Jingo structure for a feature which is – I guess – not used by 99% of the users.

This would be a fantastic integration to be added as a "plugin" but unfortunately Jingo doesn't support a plugin system (yet...).

Thank you very much for the PR!