[BUG] Markdown preview pane doesn't support intra-doc anchor navigation

Resolved 💬 1 comment Opened May 11, 2026 by carlheinmostert Closed Jun 9, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When viewing a markdown file in Claude Code's built-in preview pane, clicking a Table of Contents link (e.g. [Section](#anchor)) does not scroll the preview to the target heading. The links render as clickable but the click has no visible effect.

What Should Happen?

Clicking [Section](#anchor) scrolls the preview to the heading whose slug matches anchor, the same way GitHub web rendering does.

Error Messages/Logs

No error message

Steps to Reproduce

Open any markdown file with a ## Table of Contents section containing anchor links to other ## headings in the same file. Example: https://github.com/carlheinmostert/TrainMe/blob/staging/docs/CI.md works perfectly on github.com but not in the preview pane.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗