I'm supporting a large corporate instance of Confluence, and we're merging in a smaller instance. The smaller instance has the numbered headings macro, so I'm poking at it a bit to understand how it's being using and deciding what potential risks are with it.
So, what would you think about a re-write of this macro where numbering was done exclusively in the editor and then saved into the storage body. i.e. instead of adding a class to place the numbering in the browser as the page renders, a <span> element is inserted with the numbering.
I could see this working in two ways. First, a bodyless macro that can activate the functionality and provide settings for the entire tinymce window. A macro just like the one you have created that only number/renumbers content in the body of hte macro.
What problems do you see with that approach?