ADF rendering - mentions

Using the ReactRenderer component to render ADF documents inside macro bodies, I notice there is an unexpected result for the ‘mention’ macro where if you click it the expected popup (with the user info) does not appear. There is a difference in HTML rendered:

Normal mention on a Confluence page
Screenshot 2022-10-07 at 12.27.21

Mention rendered inside macro
Screenshot 2022-10-07 at 12.27.58

There’s an extra span added in the regular version. Is there any way to fix how this is rendered by the ReactRenderer ?