Duplicate Mathematical Symbols and Equation Rendering Bug

Describe the Bug

The formatting bug is causing duplicated symbols and text to be rendered side by side, such as “NN”, “DD”, “KK”, and repeated expressions like “k(x,x′)k(x,x′)”, instead of displaying each item only once. This duplication also affects equations and matrix dimensions, making mathematical notation appear corrupted and harder to read.

Steps to Reproduce

Ask the AI a question that returns math symbols or markdown tables, or paste text containing them into the Cursor Chat.

Expected Behavior

The chat UI should cleanly render formulas and text exactly once (e.g., “N”, “D”, “K is N×N”).

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.7.42 (Universal)
VS Code Extension API: 1.105.1
Commit: 5702c9cfca656d8710fad58402fe37f14345e3a0
Date: 2026-06-15T19:39:42.738Z (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
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

For AI issues: which model did you use?

automatic

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report with the screenshot and version info. I can see the duplicated characters (“NN”, “k(x,x′)k(x,x′)”) in the chat output.

This is a known KaTeX math rendering bug in chat. The LaTeX markup gets duplicated next to the normal text. It’s already reported internally, but I can’t share an ETA for a fix yet.

Related thread with the same symptom: LATEX Rendering issue in agent chat. You can subscribe there to follow updates.

As a temporary workaround, ask the model to answer without LaTeX (plain text or Markdown without $...$). The duplication usually doesn’t show up then. I’ll post in the thread when there’s an update on the fix.