Closed andrewzah closed 4 years ago
How are you specifying the path to mmdc? Using the mmdc
attribute or mermaid
? If you use the former it will trigger a code path that's meant for the legacy mermaid CLI.
I'm specifying it via asciidoctor's metadata:
# My Post
:mermaid: ./node_modules/.bin/mmdc
Should it not be mmdc?
The value should point to mmdc
indeed. The attribute name should be mmdc
too. In other words give this a try:
# My Post
:mmdc: ./node_modules/.bin/mmdc
That did it! Thank you.
I get this when trying to use asciidoctor-diagram (with Hugo) with
@mermaid-js/mermaid-cli
version8.8.1
:Here are the current flags for
mmdc
: