.md files completely unusable, strips frontmatter automatically no way to disable

Open a .md file, Cursor just randomly edits it and strips the -–- from frontmatter breaking files with no way to undo. Currently unusable

1 Like

To reproduce:

  1. Write markdown frontmatter
  2. Write a string
  3. Press undo
  4. Cursor edits the frontmatter

Version: 2.4.0-pre.15.patch.0 (Universal)
VSCode Version: 1.105.1
Commit: b3cf4d3765e90d96cc32d606f7c104abbf934790
Date: 2026-01-10T22:27:51.101Z
Build Type: Stable
Release Track: Early Access
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2.0

Hey, thanks for the report. This is a really serious issue, frontmatter separators shouldn’t be removed automatically.

Could you try:

  1. Disable any Markdown extensions if you have them installed, go to Extensions
  2. Check if the issue also happens in the stable version of Cursor, since you’re using Early Access

Which Markdown extensions do you have installed? That’ll help us figure out if this is caused by a specific extension or the editor itself.

To reproduce:

  1. Write markdown frontmatter
  2. Write a string
  3. Press undo
  4. Cursor edits the frontmatter

Version: 2.4.0-pre.15.patch.0 (Universal)
VSCode Version: 1.105.1
Commit: b3cf4d3765e90d96cc32d606f7c104abbf934790
Date: 2026-01-10T22:27:51.101Z
Build Type: Stable
Release Track: Early Access
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2.0

No extensions for markdown. Formatters and linters disabled. Bug exists on Beta, Bug not on stable. Will switch back for now, thank you!

1 Like