# Markdown responses in chat get "confused"/garbled

**URL:** <https://forum.cursor.com/t/markdown-responses-in-chat-get-confused-garbled/23731>\
**Category:** Bug Reports\
**Created:** [October 19, 2024, 2:52pm UTC](https://forum.cursor.com/t/markdown-responses-in-chat-get-confused-garbled/23731 "2024-10-19T14:52:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 19, 2024, 8:20pm UTC](https://forum.cursor.com/t/markdown-responses-in-chat-get-confused-garbled/23731/3 "2024-10-19T20:20:58Z")

</div>

Hi @joshg

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

> [@Issue: Markdown Code Block Escaping Problem in Cursor Chat](https://forum.cursor.com/t/issue-markdown-code-block-escaping-problem-in-cursor-chat/6336/3):
>
> EDIT: This is the shortest version that works without an identity and steps etc. This is a shorter version of the below rule for ai that worked - When proposing an edit to a markdown file, first decide if there will be code snippets in the markdown file. - If there are no code snippets, wrap the beginning and end of your answer in backticks and markdown as the language. - If there are code snippets, indent the code snippets with two spaces and the correct language for proper rendering. Indenta…

---

_[View the full topic](https://forum.cursor.com/t/markdown-responses-in-chat-get-confused-garbled/23731)._
