It's hard to generate a markdown document

In the “Chat” tab, even if I tell the LLM to wrap the content in a plain text code block, but Cursor cannot regard the code blocks in the markdown content as an inner content of the outer plain text block, I cannot copy the generated content in an easier way, the only thing I can do is to copy the whole message, which is painful and I cannot use the composer with the document generation.

And in the documentation file, if I use “Ctrl+K” to generate the document content, it will stop at a start of the code block.

2 Likes

I had a similar issue with composer. It generated some code in multiple files for me and gave the explanation and code snippets in the composer window. Then I asked it to generate documentation in somefile.md with explanations and code samples. It generated the first two headings with paragraphs and then stopped.

Hi @backrunner

As a temporary solution, here’s a tip: