Math doesn't render in .md Preview

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

even the simplest math doesn’t render when you hit the “preview” button when viewing markdown. I know you know this and it’s frustrating.

Steps to Reproduce

I’m sure you know.

Operating System

Windows 10/11

Version Information

Version: 3.4.20 (user setup)
VSCode Version: 1.105.1
Commit: 0cf8b06883f54e26bb4f0fb8647c9500ccb43310
Date: 2026-05-15T02:26:10.351Z
Layout: editor
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.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. By default, Cursor’s .md Preview renders math via the built-in Markdown Math extension KaTeX, so it should work out of the box. To figure out what’s breaking on your side, I’ll need a bit more info:

  1. Send a specific Markdown snippet that doesn’t render, even just a couple lines like $x^2$, $$\frac{a}{b}$$, etc.
  2. Share a screenshot of the Preview window showing that content.
  3. Please check two things:
    • Press Ctrl+Shift+X, search for @builtin markdown-math, and make sure the Markdown Math extension is enabled, not disabled.
    • Press Ctrl+,, search for markdown.math.enabled, and confirm whether it’s enabled or disabled.

Also make sure you’re using the built-in preview via Ctrl+Shift+V, not a third-party Markdown preview plugin. Those often don’t support KaTeX without extra setup.

Once you share the example, I’ll check if we can reproduce it on our side.

I am having the same issue in both Mac and Windows environments. The Katex math extension and the key-value are both enabled. Note: I am seeing this issue in the native cursor Preview editor pane,

image

and not in the Markdown extension preview.

For $(n)$ examples, predictions $(\hat{y}_i)$, targets $(y_i)$:

$$
J(w) = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2
$$