Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Double Quote as text is not working #219

Closed
andrew-vdb opened this issue Oct 2, 2015 · 5 comments
Closed

Double Quote as text is not working #219

andrew-vdb opened this issue Oct 2, 2015 · 5 comments
Milestone

Comments

@andrew-vdb
Copy link

I try to use double quote as part of the text but it is not working, escaping with " also not working.

@andrew-vdb
Copy link
Author

I mean
& quot ;

knsv added a commit that referenced this issue Oct 3, 2015
… represent a " with #quot; and a heart with #9829; This differs from the regular html codes in that the leading & isreplaced with a dsh and for dec codes dropped. This as referenced in issue #219.
@knsv knsv added the Fixed label Oct 3, 2015
@knsv knsv added this to the 0.5.2 milestone Oct 4, 2015
@knsv
Copy link
Collaborator

knsv commented Oct 4, 2015

Fix for this issue was released in mermaid 0.5.2. Will close this now, let me know if you issues still remain.

@knsv knsv closed this as completed Oct 4, 2015
@andrew-vdb
Copy link
Author

Hi @knsv
I just tested it with latest version,

This is working

<div class='mermaid'>
graph LR;
statement1["public test ()"];
if1{"string.compare('mermaid')==0"}--then-->then1["{<br/>//this is mermaid<br/>}<br/>"];
</div>

This is not working

<div class='mermaid'>
graph LR;
statement1["public test ()"];
if1{"string.compare("mermaid")==0"}--then-->then1["{<br/>//this is mermaid<br/>}<br/>"];
</div>

This one also not working

<div class='mermaid'>
graph LR;
statement1["public test ()"];
if1{"string.compare(&quot;mermaid&quot;)==0"}--then-->then1["{<br/>//this is mermaid<br/>}<br/>"];
</div>

@knsv
Copy link
Collaborator

knsv commented Oct 5, 2015

Had problems with that syntax as it was decoded when fetched from the browser.

Check more details here:
http://knsv.github.io/mermaid/#special-characters-that-break-syntax

In short, use #quote;

Good luck!

@andrew-vdb
Copy link
Author

Perfect!
It works now!
Thanks!

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…yarn/develop/typescript-4.3.4

Bump typescript from 4.3.2 to 4.3.4
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants