blurry icon indicating copy to clipboard operation
blurry copied to clipboard

feat: support Mermaid charts

Open johnfraney opened this issue 1 year ago • 1 comments

To make it easy to add charts to pages, let's add support for Mermaid via mermaid-py: https://mermaidpy.vercel.app/.

See the docs on how to write a Markdown plugin as a starting point: https://blurry-docs.netlify.app/plugins/write-a-markdown-plugin/

It could be good to export the Mermaid chart as an SVG: https://github.com/ouhammmourachid/mermaid-py/blob/main/tests/test_mermaid.py#L46

johnfraney avatar Nov 19 '24 16:11 johnfraney

I'll take a look!

GregHattJr avatar Nov 19 '24 21:11 GregHattJr

@GregHattJr I found myself looking for this and I found a pretty easy way to get started with it by using JS rendering of the charts rather than SVG, so I'm going to throw together a quick plugin

johnfraney avatar Jun 10 '25 21:06 johnfraney

Done and done! https://github.com/blurry-dev/blurry-plugin-mermaid

johnfraney avatar Jun 11 '25 19:06 johnfraney