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.

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?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In Cursor Markdown preview, internal anchor links in a README Table of Contents do not navigate to headings in the same file. Cursor appears to treat links as filesystem paths/directories instead of in-document anchors.

Steps to Reproduce

Open a markdown file with headings and TOC links:

Table of Contents

Data Note

Open Cursor markdown preview.
Click the TOC link (#data-note).

Expected Behavior

Preview scrolls/navigates to the ## Data Note heading in the same document.

Operating System

MacOS

Version Information

Cursor (latest as of Apr 15, 2026)
macOS (Darwin 25.3.0)
File: README.md

For AI issues: which model did you use?

Opus 4.6

Additional Information

Full bug report:

Title
Markdown preview in Cursor does not resolve internal TOC links (#anchor) correctly

Summary
In Cursor Markdown preview, internal anchor links in a README Table of Contents do not navigate to headings in the same file. Cursor appears to treat links as filesystem paths/directories instead of in-document anchors.

Environment
Cursor (latest as of Apr 15, 2026)
macOS (Darwin 25.3.0)
File: README.md
Repro steps
Open a markdown file with headings and TOC links:

Table of Contents

Data Note

Open Cursor markdown preview.
Click the TOC link (#data-note).
Expected behavior
Preview scrolls/navigates to the ## Data Note heading in the same document.
Actual behavior
Link does not navigate as an in-document anchor.
Cursor appears to interpret it like a path target.
Additional notes
Tried workaround links like ./README.md#data-note; Cursor then reports it cannot find README.md in preview.
Same markdown links work in GitHub and standard Markdown renderers.
Impact
TOCs are effectively unusable in Cursor preview for longer docs, reducing docs navigation and maintainability.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is a known issue. The Markdown preview doesn’t handle anchor links like #section and local file links correctly. Instead of navigating within the document, Cursor tries to treat them as file paths.

This affects both macOS and Windows across different versions. The team is aware, and your reports help us prioritize it. There’s no specific ETA yet, but we’re tracking it.

@Chaitanya.Kandala @Rich_Bodo this applies to your reports too, thanks for adding details.

We’ll update this thread when we have news.

I’m getting this issue too.

I’m also having this issue.