How do I convert Google Gemini output to rich text?

How do I convert Google Gemini output to rich text, so I can copy and paste to Substack?

So far I’ve used the Gemini AI tool and connected it to a text aggregator.

The aggregator SHOULD convert the Gemini output to rich text.

But, when i copy and paste the output to Substack, i get a gray code box with text and markdown symbols.

Any ideas?

So after a quick google, Substack should be able to handle markdown through the editor or through the API. So if you tell Gemini to output it in a markdown format it should work ok