You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is with the comments, and is present in Chrome and Firefox, but not Safari (Validated).
Adding %%----- Generic Styling Classes -----%% breaks the diagram, works fine without the comments.
Suspect that the ---- part is interfering with yaml parsing.
sidharthv96
changed the title
When I paste in a specific diagram the editors freeze in Chrome
Diagram with %%----- in comments freezes browser
Mar 15, 2024
This is not an issue with mermaid, but how monaco editor's highlighting works, based on the config provided.
Disabling the initEditor(monaco); call fixes the issue. So we need to investigate which rule is causing the issue.
Analysing the profile revealed that it's an issue with tokenization.
Description
When I paste a specific diagram (below) into the editor, the editor freezes when using Chrome. There is no freezing when using Safari.
Steps to reproduce
Screenshots
No response
Code Sample
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: