The built-in rendering fails when multiple nested code blocks are involved, and this is not an isolated issue.
In the screenshot, there is a task for optimizing prompts. The output at the bottom should have been wrapped in the same code block as the top part, but due to overlapping code blocks, they were split apart.