Agent's output text fails to render

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Sometimes, when an agent’s output text includes formulas or latex, it fails to render

Steps to Reproduce

make it to output a long text including some formula or latext

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.0.9 (Universal)
VSCode Version: 1.105.1
Commit: 93e276db8a03af947eafb2d10241e2de17806c20
Date: 2026-04-03T02:06:46.446Z (1 day ago)
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: Darwin arm64 25.3.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, I see the screenshot. This is a known renderer limitation in Cursor.

Cursor only supports LaTeX with specific delimiters:

  • Inline math: \(...\)
  • Block math: \[...\] or $$...$$

Standard $...$ for inline math is intentionally not supported because it can conflict with the dollar sign. When the model outputs formulas using $...$, the renderer won’t recognize them, and * and _ inside formulas can accidentally trigger italic formatting. That’s why you see the “garbage” in the screenshot.

Workaround: add an instruction in .cursorrules to make the model use \(...\) instead of $...$ for inline math. Something like:

When writing mathematical formulas, always use \(...\) for inline math and \[...\] for block math. Never use $...$ notation.

The team knows this limitation gets in the way. Here’s the main thread for this feature request: LaTeX rendering in chat

Let me know if the workaround helps.

thanks @deanrie
To my experience, before this new version, it never was colored ‘red’ if failed to render! However, it’s happenning more often

1 Like