Markdown responses in chat get "confused"/garbled

I’ve noticed many times when the model spits out markdown content in its response, sometimes the windows gets “confused” and becomes improperly formatted. For example, this:

Is there a solution in the works for this?

2 Likes

Thank you for reporting this @joshg. What’s the Cursor version? I’ve seen several markdown related fixes over the past few months and I wonder if those are included.

Hi @joshg

I think the issue is with escaping code blocks. Here’s a solution that works.

1 Like

I’m using 0.42.3

1 Like

Thank you. I’ve incorporated those rules and will see how it goes.

2 Likes

Over tried this and it’s not consistent.

Any way to prioritize this to fix within the Cursor codebase?

Having to use rules feels like a hack that didn’t always work

1 Like

This happens to me all the time in the chat area. Cursor seems to not be able to make one code block for .md files.

I believe this is because the chat itself is markdown based and unless its markdown output is just right it will break out of the markdown blocks.