Markdown Output Broken

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
Yes, but not as such.

:lady_beetle: Provide a clear description of the bug

  • Markdown files often contain additional markdown blocks (mermaid, code blocks etc.).
  • LLMs generate output as markdown formatting and output it to the chat/composer.
  • In Cursor often those ‘files’ that are created/edited by LLMs are output with nested markdown.
  • When markdown is nested it breaks the file output info regular markdown content of the chat/composer.

:arrows_counterclockwise: Explain how to reproduce the bug (if known)

  • Ask AI to create a markdown file with coding best practices including code.
  • the output will break the ‘file’ at the nesting of markdown.

:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
N/A

:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
N/A

:no_entry_sign: Tell us if the issue stops you from using Cursor.
Yes becuase markdown is getting more common for information storage, esp. during coding.
Cursor team should have a look how to make their output so when a markdown file contains code blocks it shouldnt break the file output in chat/composer. There are many tools that handle that well, so its feasible and many Cursor users will need this fixed.

Workarounds like using 2 spaces for indent or telling AI not to nest markdown is not working well because it goes against markdown best practices.

1 Like

Hey, we think Markdown output should be resolved in 0.46, but do let us know if you see issues with this again once you have got that version!

1 Like

Yes you are right. 0.46 fixes that. Perfect!

Hmm i tried that and it often works but not always. here is an fresh example from today where nested MD output breaks (e.g. ask model to output a md file with code blocks for examples. 865086c0-16dd-4adf-8887-ae15aa81c923

Thanks, I’ve recreated this myself and passed to the team!

2 Likes