asciidoctorj and document attributes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

asciidoctorj and document attributes

rockyallen
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.