Skip to content

[v5] WIP: Mermaid diagram implementation#420

Draft
yhatt wants to merge 10 commits intomajor-v5from
mermaid
Draft

[v5] WIP: Mermaid diagram implementation#420
yhatt wants to merge 10 commits intomajor-v5from
mermaid

Conversation

@yhatt
Copy link
Copy Markdown
Member

@yhatt yhatt commented Apr 11, 2026

Fix #139.

This is an initial implementation of mermaid diagrams powered by beautiful-mermaid, with zero DOM dependency and a synchronous rendering.

Developers who uses Marp Core in own system can benefit of mermaid diagram support in Marp.prototype.render() without having to think about JS running environment.

Marp Core v5 has implemented Shiki highlighter support (#413), and the theme of beautiful-mermaid diagrams also uses Shiki's.

Blockers

#417 considers to apply lazy loading modules by require('beautiful-mermaid') to stop bloating the core, but currently it is not working on Node.js due to lacked definition in beautiful-mermaid's package.json. I've sent a pull request lukilabs/beautiful-mermaid#74 but the project seems to be no activities for about a month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant