Closed charlottedeclercq closed 7 years ago
I'll have to look into that. The problem is that the diagram is actually being sent to a plantuml server for processing, which does not know anything about asciidoctor attributes. It would be necessary to substitute these variables within the Brackets extension before sending the preprocessed block to the Plantuml server. Should not be difficult, though.
Asciidoctor Diagram recently made a similar improvement. Although it follows a different path to generate the diagram, the process is still the same. When reading the content of the block, you need to be sure to apply the attributes as requested. See https://github.com/asciidoctor/asciidoctor-diagram/issues/105.
Thank you for your answer. On my computer I use brackets to edit asciidoc documents that contain plantuml diagrams, and I publish thoses documents on a server on which a job runs regularly to generate the html document, from asciidoc. This job uses the command : asciidoctor -r asciidoctor-diagram ... So I have the attributes interpreted on the server, but not on my computer in the brackets editor. Last step is to have this in brackets, thanks to you :-).
thank you, I tested it : it works perfectly ! :+1:
Great!
Hi,
In asciidoctor-diagram version 1.5.2, it is now possible to substitute asciidoc declared variables in the plantuml block. As shown in below example :
Is it possible for you to handle this in this bracket extension ?
Thank you,
Charlotte