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
431 stars 106 forks source link

Cannot pass attributes to `mmdc` from command line #448

Closed willcl-ark closed 7 months ago

willcl-ark commented 7 months ago

It's possible that I've misunderstood the documentation (sorry in advance if that's the case), but I am trying to generate pngs of my mermaid images by running this command:

asciidoctor -r asciidoctor-pdf -b pdf -r asciidoctor-diagram --attribute mermaid-output-format="png" -o output.pdf index.adoc

But the mermaid-ouput-format= attribute is not being detected/respected. Am I doing something wrong, or is this a bug?

pepijnve commented 7 months ago

Changing mermaid-output-format to mermaid-format should do the trick.

willcl-ark commented 7 months ago

Oh ok. I'll try when I get back and close if it fixes!

Thanks

willcl-ark commented 7 months ago

Thanks, that did indeed work!