lpaulsen93 Eventually you could use the Event PARSER_HANDLER_DONE but I never used it myself. So you need to test and find out. See https://www.dokuwiki.org/devel:event:parser_handler_done.
turnermm Is there some reason why you can't have separate markup for the end of the file? If you can, then here is a suggestion. I assume that you are collecting data in your syntax plugin as you move through it. So, create a new class variable in your helper and a setter method which you can call from the syntax plugin. Call that method when you have to add data. Then create a getter method which enables you to retrieve the data. At the end of your page, insert a special pattern, which is set in $this->Lexer->addSpecialPattern(). Then replace the special pattern with the saved data in your renderer.
zioth I don't want to make users add a special pattern to the end of each wiki page. It's a strange requirement, and people (including me) will forget. I think I might be stuck with the Action plugin solution. That is, unless I can add a special pattern that will capture the end of the document, without messing up other plugins. I just tried: $this->Lexer->addSpecialPattern('$', ...). It made the content fail to render at all.
turnermm Probably either misconfigured or bad regex. And '$' cannot be used as is for a regex, at the very least has to be escaped.
zioth Yes, I know that now. I was just checking whether I could match the end of the document ($) without breaking anything. The answer was no.
zioth I would like the render() method of my syntax plugin to render some things in-place, and save other things to be added just before the end of the document. Is there a way to do this, or would I have have to do something like: - Queue up HTML fragments in a helper plugin. - Create an action plugin to read the fragments and render them before the end of the document.