Create macros in confluence

Hello everyone, I am creating a macro as described in the documentation https://developer.atlassian.com/server/confluence/creating-a-new-confluence-macro/
everything works fine, except for one thing, I declare a variable inside my macro that contains html and I want html to be displayed in the macro when creating a draft, not text