You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Version 9.1.0 mermaid.init call is broken. It works fine when using the previous version(9.0.1).
To Reproduce
This can be easily reproduced using the code snippet below.
Expected behavior
graph can be rendered
Code Sample
<htmllang="en-US"><head><title>init call</title><!-- 9.0.1 works fine --><!-- <script src="https://cdn.jsdelivr.net/npm/mermaid@9.0.1/dist/mermaid.min.js"></script>--><scriptsrc="https://cdn.jsdelivr.net/npm/mermaid@9.1.0/dist/mermaid.js"></script></head><body><codeclass="test">
graph LR
A --- B
</code><script>mermaid.init(undefined,".test");</script></body></html>
Additional context
After looking at the source code, I think #2379 caused this bug. init called initThrowsErrors but not pass arguments, so arguments.length of initThrowsErrors is always 0.
The text was updated successfully, but these errors were encountered:
Describe the bug
Version 9.1.0 mermaid.init call is broken. It works fine when using the previous version(9.0.1).
To Reproduce
This can be easily reproduced using the code snippet below.
Expected behavior
graph can be rendered
Code Sample
Additional context
After looking at the source code, I think #2379 caused this bug.
init called initThrowsErrors but not pass arguments, so arguments.length of initThrowsErrors is always 0.
The text was updated successfully, but these errors were encountered: