The Table of Content Zone macro removes all the formatting of the content that it surrounds.
When you place text inside the macro body it looks okay until you save and view the output.
- Normal style text goes kind of monospaced
- Code style text loses its formatting and becomes Normal style kind of monospaced.
I don't have any hope of resolving this as Atlassian never respond, never acknowledge, and have a dumb policy for resolving issues.
NB: trying to report an issue is worse that having your teeth pulled out.