Skip to content

Mermaid - Text out of the box #468

Answered by yhatt
blavad asked this question in Q&A
Aug 14, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Marp slides will be scaled for fitting to the screen/parent element. However, the initial rendering of mermaid.js on the browser seems not to scale text according to the scale. This is still a blocker of mermaid.js integration.

For stable mermaid rendering, I recommend to use pre-rendered image of mermaid. https://gist.github.com/yhatt/8931dd98769bcc1c5b4b92fd1234a190 is powered by kroki diagram renderer, that supports a lot of diagram libraries including mermaid.js.
https://github.com/orgs/marp-team/discussions/207#discussioncomment-2182916

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blavad
Comment options

Answer selected by blavad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants