Cursor cuts off Markdown file output when using ASCII diagrams

:lady_beetle: Provide a clear description of the bug

I’ve been working with Cursor to produce a specification document. However, when Cursor attempts to use any sort of ASCII diagramming, the content of the Markdown file is cut off at the point when the diagrams begin.

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

This prompt appears to be effective:

Please write a brief spec for a Tic-Tac-Toe game in `tic-tac-toe.md`. Be sure to use diagrams.

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

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).

MacOS 15.3.1 (24D70)
Version: 0.47.5 (Universal)
VSCode Version: 1.96.2
Commit: 53d6da1322f934a1058e7569ee0847b24879d180
Date: 2025-03-14T21:40:35.200Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

:prohibited: Tell us if the issue stops you from using Cursor.

No, but it’s making it difficult because it keeps wanting to use diagrams. :smiley:

did you indent the nested markdown blocks? it works if the nested markdown blocks are indented by 4 characters on every line. otherwise if its on the same level it ends markdown output.

i mean you have to tell the AI to do that. its not aware of such issues.

I can confirm markdown diagrams are messed up, it can’t repair them no matter how you explain the feedback, it keeps drawing wrong paths and deletes correct paths.

Not sure about diagrams but at least if markdown is properly nested it should be able to make diagrams.

Here is a single level deep markdown diagram I just made

Something simple, does it look right to you?

hmm im not using diagrams but i assume that an AI would have a bit issues with the blocks arranged like that and the spacing necessary.

Wouldnt mermaid be more appropriate?


I broke it, it keeps doom-looping into various pentagrams.

Tables work great on markdown though, no issues there.

yeah tables are so much easier. i had also no issues with tables. but complex cli/tui formatting isnt yet there in general. i found certain diagrams like mermaid and others helpful and AI seems to understand that. as it has to write only connections and not draw it

Hey there,

If you’re using some CMD or tend to just create this inside an .md file, make sure you’re using the asciimatics and figlet Python modules in order to have a proper ASCII CLI/TUI. This only applies when you’re using Python.

You might tend to use Markdeep to fix formatting issues inside Cursor since the Markdown compatibility is not that complete with the chat bubble.

Basically, you’ll be transcribing diagrams from Cursor, formatting them when creating diagrams directly, and then merging them into Cursor in order for it to work properly with Cursor current composer text formatting compatibility.

I mean, tell that to Claude. :slight_smile: I didn’t ask it to make diagrams, just to write a spec. Now I have to explicitly ask it not to make diagrams. Sure I could make a rule for it, but this is clearly a bug in the LLM<->Cursor interface.

Oh, I should also mention that it was breaking the file output flow when trying to put fancy ASCII doodles on file tree schematics, so it’s not just diagrams. Again, I didn’t ask for any of this specifically, the LLM just volunteered the fanciness when asked to write a spec.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.