Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor’s inline markdown Preview mode does not activate for .md files inside ~/.claude, even though the same files work normally if moved to another directory. For markdown files under a path containing .claude, Cursor does not open the rich WYSIWYG / Notion-like markdown editor shown by the editor’s Preview / Markdown toggle. The same markdown files work normally if copied to a directory without .claude in the path.
Steps to Reproduce
- Put a markdown file under
~/.claude, for example~/.claude/test.md - Open it in Cursor
- Observe that inline markdown
Previewdoes not activate - Copy the same file to a non-excluded path, for example
~/tmp/test.md - Open that copy in Cursor
- Observe that the WYSIWYG markdown editor now works
Expected Behavior
Inline markdown Preview should activate for markdown files in ~/.claude the same way it does for equivalent files in other directories.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Cursor IDE Version: 3.1.17 (Universal)
VSCode Version: 1.105.1
Additional Information
I found what looks like a hardcoded exclusion in Cursor’s bundled app code.
In the bundled app code here:
/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js
I found a compiled module named:
out-build/vs/workbench/contrib/markdownEditor/browser/markdownEditorExclusions.js
with this exclusion list:
Wll=[".cursor",".claude",".codex"]
and the eligibility logic appears to block the markdown editor if the path matches one of those segments.
Relevant compiled snippet:
function GLw(n){
const e=n.path.replace(/\\/g,"/").split("/").filter(Boolean);
return Wll.find(t=>e.includes(t))
}
function Sod(n,e,t){
for(const i of Wll){
const r=Ko(e,i);
if(v5(n,r))return!0
}
for(const i of t)for(const r of Wll){
const s=Ko(i,r);
if(v5(n,s))return!0
}
return t.length===0?GLw(n)!==void 0:!1
}
Things I already tried:
- uninstalling Claude-related extensions
- clearing editor override cache
- removing Claude-related user settings
- checking
workbench.editorAssociations - reopening the same file from a non-
.claudepath
Current workaround: Symlink
- rename
~/.claudeto something else, for example~/.claude-config - create a symlink:
ln -s ~/.claude-config ~/.claude - open files via the symlinked path
Because the real directory name no longer contains .claude, inline markdown Preview activates again.
If this is intentional, could this exclusion list be made configurable, or could .claude be removed from it? Right now it blocks a normal markdown workflow for users who keep docs/config in that directory.
Does this stop you from using Cursor
No - Cursor works, but with this issue
