-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi there, I just wanted to share a plugin I wrote that might be useful to others.
It’s called Merlican, and it adds support for rendering Mermaid diagrams in Pelican content. It processes fenced ```mermaid blocks and converts them at build time.
You can find it here:
https://github.com/NoelJames/merlican
The plugin follows Pelican’s namespace plugin structure (pelican.plugins.merlican) and includes setup instructions in the README. Once installed, you just need to add "merlican" to your PLUGINS list in pelicanconf.py.
Important: You’ll also need to enable the fenced_code extension in your MARKDOWN settings, or the plugin won’t detect the Mermaid blocks correctly. There’s a short snippet in the README that shows how to do this.
Here is a simple demo