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: stateDiagram is not supported #272

Closed
AlexCzar opened this issue Mar 2, 2020 · 4 comments
Closed

Mermaid: stateDiagram is not supported #272

AlexCzar opened this issue Mar 2, 2020 · 4 comments

Comments

@AlexCzar
Copy link

AlexCzar commented Mar 2, 2020

When I try to render mermaid stateDiagram asciidoctor process just hangs.
AsciidoctorJ 2.2.0 (Asciidoctor 2.0.10)
Looks like it is related to mmdc problem.
Kroki renders stateDiagrams fine, so I have to manually pre-render them and then include as images into adoc. Effectively mermaid integration is broken.

@pepijnve
Copy link
Member

Could you provide an example that's not working?

@pepijnve
Copy link
Member

This is the same issue as mermaid-js/mermaid#257. No fix yet I'm afraid.

@pepijnve
Copy link
Member

FYI, I've made a fix for mermaid-js/mermaid#257. After that change I get the following syntax error when generating one of the example state diagrams from the mermaid website. I'm not sure what's wrong here.

Error: Evaluation failed: Error: Parse error on line 1:
stateDiagram    [*]
^
Expecting 'NEWLINE', 'SPACE', 'GRAPH', got 'ALPHA'

@pepijnve
Copy link
Member

Looks like I'm hitting mermaid-js/mermaid-cli#503

pepijnve added a commit that referenced this issue Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants