BUG: minor code block bug with nested code blocks

Hi everyone,

I’ve noticed a minor but annoying bug when there’s a code block inside a Markdown code block, like the image below:

It seems that this forum’s message system also has this nested markdown code block formatting bug :sweat_smile: :sweat_smile:

But you can replicate it by using the prompt in the image.

Additionally, the UI for code blocks in user messages could use some love—it feels a bit clunky at the moment. Could this be looked into?

Thanks for your help!

github handles this correctly with indentated nested blocks.

chatgpt now dos it too: