-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Incorrect Rendering of < in Mindmap #6396
Comments
Bug Analysis: Incorrect Rendering of
|
Hello @nour0205 👋 I've submitted a fix for this issue in #6406. The problem was caused by .text() escaping characters like My PR modifies Let me know if any changes or tests are needed. |
Description
When rendering a
<
character inside a mindmap node in Mermaid, it gets incorrectly encoded as<,
whereas>
renders correctly. This results in the displayed text being incorrect.Steps to reproduce
Open Mermaid's Live Editor.
Paste the following example code into the editor:
Observe the rendering behavior:
"A < B"
is displayed incorrectly as"A < B"
."A > B"
is displayed correctly.Screenshots
Code Sample
Setup
Suggested Solutions
<
is not over-encoded when rendering text inside mindmap nodes.<
inside text labels.Additional Context
No response
The text was updated successfully, but these errors were encountered: