XRENDERING-289: Nested inline macros generate invalid HTML