-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Visual bug for Chinese characters #4950
Comments
After further testing in the live editor, you can force new lines by using
This produces the following diagram. I will note that characters refusing to break into new lines seems to be an issue with any letters from any alphabet. If there's no spaces then line breaks don't seem to work. Consider the following diagram:
A similar result is achieved without |
@FutzMonitor can you try using the functions in https://github.com/mermaid-js/mermaid/blob/841ae15fb5561526bd9d9c64cc2817d17b0cba35/packages/mermaid/src/rendering-util/splitText.ts ? |
Description
It seems mermaid didn't correctly calculate the width of Chinese characters. And
"
doesn't help here.Steps to reproduce
Here's the snippet to reproduce:
Screenshots
Code Sample
No response
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: