Readme markdown outputs get truncated when there is a code example in the middle

Let’s suppose you want all the output using Readme.md markdown. For example this prompt

“Create a readme file using the markdown output where print the current date and explain each command”

The out will no close properly the ```bash example provoking that the rest of the result will no use the proper output format

In this example

I was expecting the part inside the red box keep using the markdown output, but the it lost the ``` closure tag

I ran into this as well, but with gpt-4o. I was able to work around by asking gpt-4o to give me a .md file to download.