Links of md files are not working on preview mode

I’m running into an error when I click a link in Preview:

2.6.14 macos version

Where does the bug appear (feature/product)?

  • Cursor IDE

Describe the Bug
Links of md files are not working on preview mode


Steps to Reproduce
click link of md files on preview mode



Operating System

  • MacOS

Version Information

Version: 2.6.14
VSCode Version: 1.105.1
Commit: eb1c4e0702d201d1226d2a7afb25c501c2e56080
Date: 2026-03-08T15:36:54.709Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0



Does this stop you from using Cursor?

  • No - Cursor works, but with this issue

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In-document (fragment) links in markdown preview don’t work — e.g. table-of-contents links like [Section](#section) in a README. Clicking them either shows “The file is not displayed in the text editor because it is a directory” or “Unable to open ‘README.md’” / “The editor could not be opened because the file was not found.” In one workspace setup, clicking “Create File” then tried to create C:\README.md (operation not permitted).

Steps to Reproduce

  1. Open a repo that has a README.md with a table of contents (e.g. fragment links #section).
  2. Open the README in Cursor and switch to Preview (or open preview side-by-side).
  3. Click any in-document link (e.g. a TOC entry).
  4. Observe: link doesn’t scroll to the section; instead see “directory” or “file not found” (and in some setups, wrong path like C:\README.md).

Expected Behavior

Clicking an in-document link should scroll the preview (or editor) to the target heading, same as in VS Code and on GitHub.

Operating System

Windows 10/11
MacOS

Version Information

Version: 2.6.18 (user setup)
VSCode Version: 1.105.1
Commit: 68fbec5aed9da587d1c6a64172792f505bafa250
Date: 2026-03-10T02:01:17.430Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT arm64 10.0.26200

Additional Information

A previous thread (“Links in plan docs not clickable”) said the latest version fixed link issues; that may apply to Plan docs. In-document links in regular .md preview are still broken in 2.6.18.

Does this stop you from using Cursor

No - Cursor works, but with this issue

I am having the same issue. The AI was unable to fix it. I was finally forced to Google search for a solution, and ran into this thread. It seems the issue is known by the Cursor Dev team but not yet fixed.

1 Like

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

There are two button can preview .md file (see attached image file), one can handle local file link corrently, like L2 another not can’t

Steps to Reproduce

see attached image file

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.6.20 (system setup)
VSCode Version: 1.105.1
Commit: b29eb4ee5f9f6d1cb2afbc09070198d3ea6ad760
Date: 2026-03-17T01:50:02.404Z
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

No - Cursor works, but with this issue

Same for me. Shouldn’t be a big issue to fix with agentic engineering :wink:
Cross my fingers.
Marco

What’s the next step here @deanrie ? Is there an ETA on this?