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

`style` attribute is ignored for syntrax diagrams #348

Closed inponomarev closed 3 years ago

inponomarev commented 3 years ago

I can set the custom style file for all the syntrax diagrams in the document by setting :syntrax-style:, and it works!

However, if I want to set an individual style file for a single syntrax diagram using

[syntrax,example,svg, style="mystyle.ini"]
....
line('a', 'b', 'c') 
....

the style is simply ignored, no matter if :syntrax-style: style is set for the document or not (other attributes such as scale and heading are respected), contrary to what is said in documentation.

pepijnve commented 3 years ago

Turns out 'style' is a reserved attribute and it simply doesn't get passed down to the extension. I'll rename this to style-file.