Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mermaid diagrams not rendered in ?print-pdf mode #163

Open
zygoloid opened this issue Apr 2, 2024 · 1 comment
Open

mermaid diagrams not rendered in ?print-pdf mode #163

zygoloid opened this issue Apr 2, 2024 · 1 comment

Comments

@zygoloid
Copy link

zygoloid commented Apr 2, 2024

Steps to reproduce:

Visit https://reveal-hugo.dzello.com/?print-pdf and scroll down to the "mermaid" example.

Expected:

Rendered diagram, like in non-?print-pdf mode.

Actual:

Mermaid graph description "graph LR A --> B B --> C" appears on slide.

@zygoloid
Copy link
Author

zygoloid commented Apr 2, 2024

Workaround

After opening slides in ?print-pdf mode, manually invoke mermaid.init() from JavaScript console before printing.

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

No branches or pull requests

1 participant