Chat output that has markdown with embedded code does not render properly

I am using Cursor to generate docs, and it often generates markdown blocks with embedded code blocks. For example, it might respond:

Certaintly! Here’s some docs

# A heading

```python
a code example

However Cursor has trouble rendering embedded blocks, they show up like this:
![image|263x500](upload://qFAtNDB3WlfLqHhXHvQRFOeDju.png)

Which makes it impossible to copy/paste.

I've resorted to this prompt hack:
> Use ``` for the initial markdown, but for code samples, do not use triple back tickets, instead use ~~~

Which ends up working but is not ideal.
1 Like

Hi @lizzybear420

As a temporary solution, here’s a tip:

1 Like