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

Basic chart does not render on Chome, but does in Firefox #290

Closed
wsw70 opened this issue Feb 2, 2016 · 1 comment
Closed

Basic chart does not render on Chome, but does in Firefox #290

wsw70 opened this issue Feb 2, 2016 · 1 comment

Comments

@wsw70
Copy link

wsw70 commented Feb 2, 2016

(initially posted on SO, and the answer pointed me to the right direction)

I tried to run in Chrome (v48) the example from the site (a working copy is on codepen.io):

<script src="https://cdn.rawgit.com/knsv/mermaid/0.5.1/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>

<div class="mermaid">

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

</div>

The output is:

enter image description here

The same code runs fine in Firefox.

A sequence diagram works great on both Chrome and Firefox.

I think this is a bug/incompatibility issue.

@wsw70 wsw70 changed the title Basic chart does not render while sequential one does Basic chart does not render while a sequence one does Feb 2, 2016
@wsw70 wsw70 changed the title Basic chart does not render while a sequence one does Basic chart does not render on Chome, but does in Firefox Feb 2, 2016
@wsw70
Copy link
Author

wsw70 commented Feb 2, 2016

Same as #281

Changing the source to

<script src="https://cdn.rawgit.com/knsv/mermaid/master/dist/mermaid.min.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/knsv/mermaid/master/dist/mermaid.css">

solved the issue.

@wsw70 wsw70 closed this as completed Feb 2, 2016
snowdj added a commit to snowdj/econold that referenced this issue Feb 7, 2017
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
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