webpro / reveal-md

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file
MIT License
3.77k stars 419 forks source link

Mermaid not rendering #483

Open sbmueller opened 6 months ago

sbmueller commented 6 months ago

Hello, I have been trying to get the mermaid demo running, however, no mermaid diagram is rendered when invoking reveal-md demo-mermaid/mermaid.md. Instead, the diagram code is just displayed in monospace font. I have noticed others who seem to have trouble with it as well: https://github.com/webpro/reveal-md/issues/197#issuecomment-1991146443. I can't find any documentation on the feature, neither in the README.md, nor with the --help output. I have reveal-md 6.1.2 installed.

Thanks for any hints!

webpro commented 4 months ago

There's a difference in "stacked" slides which is now hopefully handled better.

Any chance you could try this:

npm i https://pkg.pr.new/webpro/reveal-md@0f1c75a
Morikko commented 2 months ago

I tested on 6.1.3 and the mermaid is rendered in stacked slides. However, the text seems a bit blurry.

Non-Stacked:

image

Stacked:

image