I am trying to understand when the transform method is called and how to interpret the passed arguments.
What I eventually want to do is to be able to change the page content on the final pass (when all the macros have been expanded). I’m having trouble to detect that final call to transform. When does it get called for a macro on the page, or for the pagetree and how to detect that.
I think a weight of 100 will put your transformer after any Confluence transformers. App transformers is a different story, there’s probably no way to get a good overview of what weights apps use.
Do you have any pointers on how to detect what triggers a call to transform? Is it a macro / page tree / the pages final round, that kind of questions. There’s no docs really.
I will have to figure out how to filter out all the calls to transform that I’m not interested in and pick just the one, the last one I guess, that is important. This is going to be an interesting challenge, I see pages that trigger 400 calls to transform and that’s a problem.