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.99k stars 6.11k forks source link

Table of Extended ASCII currently supported by Mermaid? #2869

Open ChristopherA opened 2 years ago

ChristopherA commented 2 years ago

I've been working on collecting some examples of various Mermaid diagrams in a gist, and have encountered a peculiarity that can't find any docs for.

I know that Mermaid doesn't support Unicode but I presumed it supported Extended ASCII (>128), but currently the Github version of Mermaid gives an error if you include many Extended ASCII (>128) characters in any labels. In particular and , however, ² does not, as does some foreign characters.

I'd like to see in the docs a list of the characters that the current Mermaid does support.

ChristopherA commented 2 years ago

I found part of my solution in the docs in the flowchart section, which is to use quotes and HTML entities.

However, I wasn't expecting to find this doc here, as I think this is applicable for all labels, not just flowchart labels. Entity escape is should be in some more generic section.