jekyll-mermaid icon indicating copy to clipboard operation
jekyll-mermaid copied to clipboard

No longer working - Invalid value for <svg> attribute viewBox="0 0 -Infinity -Infinity"

Open SteveEdson opened this issue 8 years ago • 1 comments

Please see the issue at https://github.com/knsv/mermaid/issues/291


Using the Jekyll plugin and getting the error Invalid value for <svg> attribute viewBox="0 0 -Infinity -Infinity". Also get the error when calling mermaid.init();

The svg looks like:

<svg id="mermaidChart1" xmlns="http://www.w3.org/2000/svg" height="100%" viewBox="0 0 -Infinity -Infinity" style="max-width:-Infinitypx;"><g><g class="output"><g class="clusters"></g><g class="edgePaths"></g><g class="edgeLabels"></g><g class="nodes"></g></g></g></svg>

for the example:

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

SteveEdson avatar Mar 08 '16 17:03 SteveEdson

Thanks for bringing this to my attention. I'll try and look into it this week if I can find some free time.

jasonbellamy avatar Mar 09 '16 01:03 jasonbellamy