https://github.com/Texarkanine/jekyll-mermaid-prebuild allows to render Mermaid in local, without needing to use mermaid.ink, that has given me problems recently. Only problem is that it requires the mmdc executable installed, that's a Node.js one. The same way we have prebuild mode and if it fails fallback to just provide the URL, we can add a local mode that's checked first, and if mmdc is not available, fallback on mermaid.ink.
My experience with Ruby is limited, but I can create a small PR with the help of Codex, so it can be reviewed and merged.
https://github.com/Texarkanine/jekyll-mermaid-prebuild allows to render Mermaid in local, without needing to use mermaid.ink, that has given me problems recently. Only problem is that it requires the
mmdcexecutable installed, that's a Node.js one. The same way we haveprebuildmode and if it fails fallback to just provide the URL, we can add alocalmode that's checked first, and ifmmdcis not available, fallback on mermaid.ink.My experience with Ruby is limited, but I can create a small PR with the help of Codex, so it can be reviewed and merged.