Note that another way to reproduce the same behaviour is the following (with the banana macro listed above)
- Insert the banana macro onto a blank confluence page
- Save the macro and publish the page
- Edit the page
- Delete the macro
- Publish the page
- Edit the page
Expected result
A blank page appears in the editor
Actual result
The macro which you previously deleted is rendered briefly before disappearing. All of the macro’s code executes.