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

Unify regex for finding <br> tags throughout mermaid #1202

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Unify regex for finding <br> tags throughout mermaid #1202

merged 1 commit into from
Jan 15, 2020

Conversation

GDFaber
Copy link
Member

@GDFaber GDFaber commented Jan 13, 2020

📑 Summary

Updated the regex for finding line breaks through
tags so they are all identical.

Resolves #1200

📏 Design Decisions

Updated the regex definitions (did not centralize them in utils for now).
Added unit test and integration test for stateDiagram.
Added unit test for multiline node labels in flowcharts.
Added checking for <br\t/> to unit test for multiline edge labels in flowcharts.

📋 Tasks

Make sure you

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

@knsv knsv merged commit c564a84 into mermaid-js:develop Jan 15, 2020
@GDFaber GDFaber deleted the bug/1200_unify_regex_for_br_tags branch January 15, 2020 18:04
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.

Problems with <br /> tags in flowchart label texts
2 participants