Hi all - spent part of today experimenting with integrating Mermaid JS into Obsidian. Seems to be working and wanted to share the progress. Are others interested in this? Has this been done already and I just didn’t find it? Let me know your thoughts.
Quick short video showing it in action is here: https://youtu.be/Y0kW3NC7Hls
- It renders diagrams in the doc preview mode only
- It only generates diagrams if they have not already been generated
- All diagrams are rendered as png (though I am considering svg later)
- The rendering happens using a locally running support service that wraps mermaid-cli - the diagram source is sent to this service which performs the generation and returns the image.