Open mscno opened 2 years ago
:+1: very useful feature.
This is a good suggestion. I will add it soon.
Good. Use case I have in mind diagram with clickable links:
graph LR;
QuickStart(Quick Start) --> CmdPalette(Command<BR>Palette);
QuickStart --> CreateNotes("Create notes");
QuickStart --> InternalLinks("Internal Links");
click CreateNotes "/Create notes";
click CmdPalette "/Command palette";
click InternalLinks "/Internal link";
It would be a great feature to enable native support of mermaid.js diagram blocks. This would enable users to write diagrams as code and keep them inside the markdown files.
It is simple enough to include the mermaid.js dependency and include a raw div with mermaid syntax, but we may need some more tweaking to enable parsing of code blocks.
I dont know if mermaid rendering can be enabled without changing the core zola rendering engine, but it seems like it was achieved by Docsy (a hugo docuementation theme) without changing the core hugo markdown engine, and using jquery instead: https://github.com/google/docsy/blob/d4b214c8e5c7fabf9e83b58a9df2281be242d5b4/assets/js/mermaid.js