asciidoctorj and document attributes
Posted by rockyallen on Oct 08, 2017; 9:56am
URL: https://discuss.asciidoctor.org/asciidoctorj-and-document-attributes-tp5960.html
In a treeprocessor, I want to get the current value of att from:
= Title
:att: 1
= block1
text
:att: 2
=block2
text
From experimenting, I *think*
block.getDocument.getAttributes() returns environment attributes + header attributes as they were defined at the start of processing;
block.getAttributes() returns things like role and style, ie just the attributes that are specific to that block.
Is it possible to get the value of a document attribute as it is immediately prior to the block?
Using 1.6.0-alpha.5 via asciidoctor-ant.