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

Brackets in a node with text? #213

Closed
orschiro opened this Issue Sep 24, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@orschiro
Copy link
Contributor

commented Sep 24, 2015

Dear all,

I looked at the following example from the documentation:

id1[This is the text in the box]

I assumed to add brackets to the text as follows:

id1[This is the (text) in the box]

However, the Live Editor does not render the chart when using brackets.

Are brackets in node link texts supported?

Thankfully,

Robert

@knsv

This comment has been minimized.

Copy link
Owner

commented Sep 26, 2015

Put the text within quotes and you will have a diagram:

graph LR
id1["This is the (text) in the box"]

Good luck!

@knsv

This comment has been minimized.

Copy link
Owner

commented Sep 26, 2015

Thanks for bringing this up. I added a small example in the docs for this case:
http://knsv.github.io/mermaid/#special-characters-that-break-syntax

@knsv knsv added the question label Sep 26, 2015

@orschiro

This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2015

It works. Thanks @knsv!

@orschiro orschiro closed this Sep 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.