Issues with markdown when creating a google doc from a template

Hi there. I am having issues with creating a google doc from a template. The data going in is coming from an AI Assistant that has outputted in Markdown. When I put it into the template module, it is coming out as mark down in the document that is created.

I have followed the instructions in the following thread: Cannot get the Markdown or HTML format to populate correctly a Google Doc

But it isn’t working still. Any ideas?

I have also tried enabling Markdown in the Google Doc template.

Many thanks in advance.