8000 Mermaid v11 by tommoor · Pull Request #7964 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Mermaid v11 #7964

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

Merged
merged 2 commits into from
Nov 16, 2024
Merged

Mermaid v11 #7964

merged 2 commits into from
Nov 16, 2024

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented Nov 16, 2024

Finally Mermaid seems to bundle correctly, notably while the overall JS size has increased a lot (expected) the initial JS size is reduced with this upgrade and that's much more important.

image

Supercedes #7865

closes #6798
closes #7815
closes #7815
closes #7791
closes #7228
closes #7199
closes #6470

@tommoor tommoor marked this pull request as ready for review November 16, 2024 15:44
},
renderElement
// If the element is not visible we use an off-screen element to render the diagram
element.offsetParent === null ? renderElement : element
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish this wasn't needed, but Mermaid's API is quite strange here – if you don't pass the existing element with rendered content you'll often get an empty SVG returned from the promise, this must be a bug that's being worked around here.

@tommoor tommoor merged commit d73b4c5 into main Nov 16, 2024
11 checks passed
@tommoor tommoor mentioned this pull request Nov 16, 2024
@tommoor tommoor mentioned this pull request Nov 20, 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.

Typerror rendering Mermaid diagram Not all mermaid diagrams available
1 participant
0