order of extension processing
Posted by ttmetro on Nov 06, 2018; 6:53pm
URL: https://discuss.asciidoctor.org/order-of-extension-processing-tp6581.html
I've created 2 extension, a BlockProcessor and an InlineMacroProcessor.
Apparently they are executed in different phases: first the BlockProcessor is called to handle all the blocks, later the InlineMacroProcessor.
I need their attributes in the sequence they appear in the document. Is there a way to do this?
Motivation: the block and macro process Python code, that is written to a file, evaluated, and in a later pass inserted into the document. E.g. the block might set up a computation, the macro display the results inline.
Thanks!
Bernhard