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
68.63k stars 6.05k forks source link

Please add Chinese support #5597

Closed zronal closed 3 days ago

zronal commented 6 days ago

Description

Currently, many subtitles and elements cannot be displayed if Chinese characters are entered. For example, checkout of Please add Chinese support.

Steps to reproduce

gitGraph
   commit id: "AAA"
   commit id: "BBB"
   branch 中文

Screenshots

No response

Code Sample

No response

Setup

Suggested Solutions

No response

Additional Context

No response

sidharthv96 commented 3 days ago

You can use double quotes to allow all characters.

gitGraph
   commit id: "AAA"
   commit id: "BBB"
   branch "中文"
gitGraph
   commit id: "AAA"
   commit id: "BBB"
   branch "中文"