asciidoctor / asciidoctor-diagram

:left_right_arrow: Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.
http://asciidoctor.org
MIT License
434 stars 106 forks source link

Mermaid: stateDiagram is not supported #272

Closed AlexCzar closed 4 years ago

AlexCzar commented 4 years ago

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 commented 4 years ago

Could you provide an example that's not working?

pepijnve commented 4 years ago

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

pepijnve commented 4 years ago

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 commented 4 years ago

Looks like I'm hitting https://github.com/mermaid-js/mermaid-cli/issues/503