Empty preview on .md files

When attempting to preview .md files using Ctrl + Shift + V, the preview pane opens but remains completely empty. This occurs on all Markdown files, regardless of content.

Steps to Reproduce

  1. Open any .md file in the editor.
  2. Press Ctrl + Shift + V to open the Markdown preview.
  3. The preview pane appears, but it is completely blank.

Environment Details
Version: 0.47.5 (user setup)
VSCode Version: 1.96.2
Commit: 53d6da1322f934a1058e7569ee0847b24879d180
Date: 2025-03-14T21:53:57.982Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045

Additional Notes

  • Restarting the editor does not fix the issue.
  • Issue persists across different workspaces and files.
  • Error appear in the console:
    Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'sha256-P2eVBRNqvNBb9eWklx8rKTilnjxyAEeUd4xaprd12XE=' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-DBmpO7fNgmVb4FnA7cax3H6VOiFKkE02jFkm2NcSm6o='), or a nonce ('nonce-...') is required to enable inline execution.
1 Like

Any updates here? Still can not open any md file in Cursor

I have the same issue
Version: 0.49.1
VSCode Version: 1.96.2
Commit: 4c8fb291b08c52a5d2fee1b4463620092c4ed7c0
Date: 2025-04-17T20:45:48.681Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

I found the solution. I will reply myself. You need to go to configure the default editor for ‘.mdc’ and change it to use the Text Editor instead of the MDC Editor

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.