Hi,
i got my code working now, its a mix of WikiMacroBase expand_macro and IRequestFilter. So now i can use a macro to add some stuff in the comment and on commit it will resolve the macro and plug it into the comment so the macro is removed with informations that need to be persistent.
I know it sounds strange but the idea behind it is to add stuff like date and authenticated user in the comment with the expand macro in the preview and later replace the macro code wit the string that is shown in the preview to make it persistent. if i would leave the macro it would always take the actual date and the user that is logged in and that defeats the purpose here.
Cheers
Markus