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:
Send a specific Markdown snippet that doesn’t render, even just a couple lines like $x^2$, $$\frac{a}{b}$$, etc.
Share a screenshot of the Preview window showing that content.
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,
and not in the Markdown extension preview.
For $(n)$ examples, predictions $(\hat{y}_i)$, targets $(y_i)$:
Hey, thanks for the clear repro, that really helps.
Key point: based on the reports in this thread, math breaks only in Cursor’s native Preview panel, but it renders fine in the built-in VS Code preview. Try opening the preview like this:
Cmd+Shift+V or Ctrl+Shift+V, or Command Palette Cmd+Shift+P or Ctrl+Shift+P then Markdown: Open Preview to the Side.
That preview uses the built-in Markdown Math KaTeX and should correctly render $...$ and $$...$$. Let me know if your example $$ E = mc^2 $$ renders there, then we’ll know the issue is limited to the custom Preview panel.
This native preview bug is known and reproduces for several users on macOS and Windows. I reported it internally, but I can’t share an ETA for a fix yet. The workaround above should unblock you for now.