Skip to content

Sharing a Plugin for Mermaid Diagrams in Pelican #781

@NoelJames

Description

@NoelJames

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions