order of extension processing

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

order of extension processing

ttmetro
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