Plan mode UI/rendering bug

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor UI bug with plan files. When you use nested code fences (like ``` to wrap markdown that contains ``), Cursor’s plan file post-processor corrupts it and creates empty code block pairs repeatedly.

Steps to Reproduce

Steps to reproduce the Cursor plan file nested code fence bug:
Create or edit a .plan.md file in .cursor/plans/
Include nested code fences - use 4 backticks to wrap content that contains 3 backticks.
Save the file
Result: Cursor’s plan file post-processor corrupts the content, inserting many empty code block pairs like:
The bug appears to be in how Cursor parses/transforms plan file markdown.

Operating System

MacOS

Version Information

Version: 2.4.22 (Universal)
VSCode Version: 1.105.1
Commit: 618c607a249dd7fd2ffc662c6531143833bebd40
Date: 2026-01-26T22:51:47.692Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

this happened to me with Win11 , I had to manually edit the .md file to be able to continue

Hey, thanks for the report. This looks like a bug in how markdown is handled in plan files. We’ve already seen a few similar issues where the plan file post-processor breaks markdown syntax.

Your case with nested code fences is a bit specific and different from the other reports about tables.

For now, the workaround is to edit .plan.md directly as a plain text file, avoid nested fences, or use alternative formatting (for example, indentation instead of 4 backticks).

I’ll pass this to the team. We’ve gotten multiple reports about markdown processing in plans, so it looks like there’s a parser issue.