Skip to content

Feature Request: Support for Mermaid.js v11+ (without markdown-it-mermaid)Β #717

@Thyme-Kirihara

Description

@Thyme-Kirihara

Hi πŸ‘‹ Thank you for your great plugin β€” it's been very helpful for my Neovim workflow!

I'd like to propose support for Mermaid v11+ in markdown-preview.nvim.
Since markdown-it-mermaid doesn't support modern Mermaid (v11+), I've created a working patch that:

  • Converts ```mermaid blocks to <div class="mermaid">
  • Adds mermaid.min.js script loading (from CDN or _static)
  • Initializes Mermaid via mermaid.initialize({ startOnLoad: true })
  • Keeps markdown-it-mermaid untouched (optional alternative)

Would you be open to accepting a PR that adds this as an optional feature, disabled by default?

Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions