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

Prevent SVG transform from clobbering previous nodes #86

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

paul-sachs
Copy link
Contributor

@paul-sachs paul-sachs commented Feb 14, 2023

Maintains indices after transform by rerunning findInstances. We could make it a little more performant maybe by iterating indices but this is the more consistent approach.

Wasn't exactly sure how to best write a test for this case so I kept the test simple.

Fixes #85

@sjwall sjwall merged commit 834e282 into sjwall:main Feb 16, 2023
@sjwall
Copy link
Owner

sjwall commented Feb 16, 2023

Thanks for the PR, much appreciated!

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.

Multiple mermaid instances within a single md file result in unexpected output in svg mode
2 participants