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
71.89k stars 6.53k forks source link

The interpunct punctuation(·) can not use in mermaid. #2081

Closed gledos closed 3 years ago

gledos commented 3 years ago

Describe the bug

When I input the Interpunct, mermaid can't run, mermaid shows "Syntax Error".

To Reproduce Steps to reproduce the behavior:

  1. input the Interpunct
  2. See Syntax Error

Expected behavior

I hope that Mermaid can display the spacer in China, and the Interpunct is more common in Chinese and Japanese.

Screenshots

waterfox_FqSV51gEGY

waterfox_zfFIWrMfcb

Code Sample

graph TD
  A[不可思议的教室 OP2] ==>|魔性舞蹈| B(Pani Poni Dash! Dance.gif)
  B ==> |动图| Q{deadman 死人}
  C[タイニーリトル·アジアンタム] ==> |音乐| Q
  Q ==>|右键| D[获得音乐]

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

gledos commented 3 years ago

Use "" can run, like C["タイニーリトル·アジアンタム"] ==> |音乐| Q .