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

Mermaid breaks when variables end in 'v' #276

Closed
FrenchBen opened this issue Jan 8, 2016 · 3 comments
Closed

Mermaid breaks when variables end in 'v' #276

FrenchBen opened this issue Jan 8, 2016 · 3 comments

Comments

@FrenchBen
Copy link

Steps to reproduce

Create a simple graph:

{% mermaid %}
graph TD;

  A(First Box)
  B(Second Box)
  A-->B
{% endmermaid %}

Now change any variable to end with 'v' and you'll get errors:

{% mermaid %}
graph TD;

  Av(First Box)
  B(Second Box)
  Av-->B
{% endmermaid %}
@knsv
Copy link
Collaborator

knsv commented Jan 11, 2016

v ... That is probably to to the semantics of v to be the arrow down in the graph defintion:

graph v

This equals:

graph TB

What version do you see this in? The reason I ask is because this is an old issue that has been fixed in newer versions of mermaid.

http://knsv.github.io/mermaid/live_editor/#/edit/Z3JhcGggVEQ7CgogIEF2KEZpcnN0IEJveCkKICBCKFNlY29uZCBCb3gpCiAgQXYtLT5C

@FrenchBen
Copy link
Author

@knsv Thanks for the quick reply - This is indirectly in the gitbook mermaid plugin, but seems to have been updated with the latest code.
https://github.com/JozoVilcek/gitbook-plugin-mermaid

I do like the live editor, it's working very nicely!

TL;DR:
I use this plugin: https://github.com/JozoVilcek/gitbook-plugin-mermaid
And mermaid isn't liking the 'v' - I have an issue on that repo too; since it seems to be fixed here, we can probably close this and blame the plugin :P

@knsv
Copy link
Collaborator

knsv commented Jan 14, 2016

Thank, closing.

@knsv knsv closed this as completed Jan 14, 2016
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

2 participants