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

unicode in labels #776

Closed
Dimouse opened this issue Dec 30, 2018 · 1 comment
Closed

unicode in labels #776

Dimouse opened this issue Dec 30, 2018 · 1 comment

Comments

@Dimouse
Copy link

Dimouse commented Dec 30, 2018

It seems that unicode is still not fully supported:(
I didn't manage to add neither ndash; nor mdash; and similar utf chars:( And this is very much needed actually.

Uncaught Error: Parse error on line 2:
...s à Hercule. 1878 "–"] --- 4206(ddd)
-----------------------^
Expecting 'SEMI', 'NEWLINE', 'SPACE', 'EOF', 'GRAPH', 'DIR', 'TAGEND', 'TAGSTART', 'UP', 'DOWN', 'subgraph', 'end', 'SQE', 'PE', '-)', 'DIAMOND_STOP', 'MINUS', '--', 'ARROW_POINT', 'ARROW_CIRCLE', 'ARROW_CROSS', 'ARROW_OPEN', 'DOTTED_ARROW_POINT', 'DOTTED_ARROW_CIRCLE', 'DOTTED_ARROW_CROSS', 'DOTTED_ARROW_OPEN', '==', 'THICK_ARROW_POINT', 'THICK_ARROW_CIRCLE', 'THICK_ARROW_CROSS', 'THICK_ARROW_OPEN', 'PIPE', 'STYLE', 'LINKSTYLE', 'CLASSDEF', 'CLASS', 'CLICK', 'DEFAULT', 'NUM', 'PCT', 'COMMA', 'ALPHA', 'COLON', 'BRKT', 'DOT', 'PUNCTUATION', 'UNICODE_TEXT', 'PLUS', 'EQUALS', 'MULT', got 'STR'
at Tt.parseError (mermaid.min.js:1)
at Tt.parse (mermaid.min.js:1)
at V (mermaid.min.js:11)
at Object.render (mermaid.min.js:11)
at a (mermaid.min.js:18)
at Object.init (mermaid.min.js:18)
at Be (mermaid.min.js:11)
at mermaid.min.js:15

@knsv
Doesn't work for:
graph TD;
A(भीष्म)-->B;

Originally posted by @Suresh-Subedi in #9 (comment)

@Dimouse
Copy link
Author

Dimouse commented Jan 6, 2019

I am sorry. Taking label in quotes [""] fixes this.

@Dimouse Dimouse closed this as completed Jan 6, 2019
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…yarn/develop/svelte-3.48.0

chore(deps-dev): bump svelte from 3.47.0 to 3.48.0
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

1 participant