mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
69.43k stars 6.16k forks source link

can not support Chinese description ? #1925

Closed Undeio closed 1 year ago

Undeio commented 3 years ago

like the issue #20

example like below can not be render successfully

{% mermaid %}
graph TB
A["系统发现产生了一个异常"] --> B
{% endmermaid %}

{% mermaid  %}
graph TB
C["This is the test text!"] --> D
{% endmermaid %}

I try it:

Snipaste_2021-03-04_02-01-28
jgreywolf commented 3 years ago

Just tested this in the Live Editor and it is displaying correctly there.

Perhaps this is related to hexo? Can you check there as well?

yout0703 commented 2 years ago

Same problem with IDEA,but vscode works well.

IntelliJ IDEA 2021.3.2 (Ultimate Edition) install Mermaid.js image image Visual Studio Code 1.64.2 ,install Markdown Preview Mermaid Support image

llxcyzgh commented 2 years ago

如果是在 html 中使用, 记得 就不会中文乱码了

sidharthv96 commented 1 year ago

Appears to be solved in 10.2.4 (Not sure which version the actual fix was in).

image