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

#1216 Fix for issue when mermaid freezes the browser tab due to large… #1221

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

knsv
Copy link
Collaborator

@knsv knsv commented Jan 26, 2020

… diagrams

📑 Summary

Safeguard for mermaid when encountering a huge text file, prevent mermaid from freezing the browser tab.

Resolves #1216

📏 Design Decisions

Safeguard based on textsize of the incoming text of the diagram. The solution is generic and is done for all diagram types before the parsing is initiated. There is a default max size which can be overridden by an integrator

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Jan 26, 2020
@knsv knsv merged commit ea29b67 into develop Jan 27, 2020
@knsv knsv deleted the bug/1216_dodging_huge_diagrams branch May 27, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mermaid hangs up current page on large inputs
1 participant