Open rjaus opened 1 year ago
stateDiagram
[*] --> First
state First {
[*] --> second
second --> [*]
}
It works if you change your mermaid server to point to a previous version of mermaid. I found this solution in an older thread.
Find your Markdown PDF extension in the extensions tab, then click the gear. Choose Extension Settings. In the page that opens, find "Mermaid Server" and update the server to the test shown below which references a 9.0.1 version:
Thank you, that worked.
I updated to the latest version of the extension, and it now seems to output the mermaid graphs as their markdown syntax (unrendered).
Your solution worked with the latest version.
Switching between versions manually, the most recent mermaid version that worked for me when testing was:
https://cdn.jsdelivr.net/npm/mermaid@10.4.0/dist/mermaid.min.js
Problem: "Syntax error in text mermaid version 10.4.0"
Occurring in PDF & PNG export. (haven't tested any other formats).
Using as VS Code extension.
Mermaid syntax in question: (as taken from example docs):
But it's happening on every sequenceDiagram as well.