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

When there is a Chinese symbol in the flowchart, it will crash。 #238

Closed
Arnoldnuo opened this issue Oct 28, 2015 · 3 comments
Closed

When there is a Chinese symbol in the flowchart, it will crash。 #238

Arnoldnuo opened this issue Oct 28, 2015 · 3 comments

Comments

@Arnoldnuo
Copy link

wrong:

graph TD
A[a,a]

right:

graph TD
A[a,a]
@knsv
Copy link
Collaborator

knsv commented Oct 28, 2015

Put the characters within quotes and it will work, as in:
graph TB
A["这工作"]

Example:
http://knsv.github.io/mermaid/live_editor/#/edit/Z3JhcGggVEIKICBBWyLov5nlt6XkvZwiXQ

@Arnoldnuo
Copy link
Author

@knsv thank you, I'll remenber to add quotes when I use flowchart。

@tylerlong
Copy link
Collaborator

Now it works even without quotes: https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVEIKICBBW-i_meW3peS9nF0

But it is a good practice to put no-ascii characters inside quotes.

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…yarn/develop/prettier-2.3.2

Bump prettier from 2.3.1 to 2.3.2
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

No branches or pull requests

3 participants