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

Fix rendering Mermaid diagrams to PDFs and images #365

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

haensen
Copy link

@haensen haensen commented May 2, 2024

Fixes issues #312, #318, #337 and #342.
Also, enables using Mermaid's newest features like xychart-beta with this tool.

The root cause of the problem was that sometime after and around version 10.5 Mermaid started using features that were unsupported by the Chromium version that this tool used. At least structuredClone-function was one such feature. So this fix pumps the Puppeteer from version 2.21 to 22.7.1, which pumps Chromium from version 80 to 124.

Also, the line that removes Chromium from the package is removed, because after Puppeteer v19 Chromium is stored to ~/.cache, which doesn't affect the package size.

@haensen haensen changed the title Fix rendering Mermaid diagrams to PDFs and images Work in Progress: Fix rendering Mermaid diagrams to PDFs and images May 2, 2024
@haensen haensen changed the title Work in Progress: Fix rendering Mermaid diagrams to PDFs and images Fix rendering Mermaid diagrams to PDFs and images May 3, 2024
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.

None yet

1 participant