LaTeX rendering in chat

Thanks for sending the examples, the screenshots show a few things right away. I’ll break it down.

  1. Inline $...$ doesn’t render, that’s by design. Single $ is intentionally disabled because it conflicts with normal text and money amounts, for example $1,500 would break parsing. For inline math use \(...\), for block math use \[...\] or $$...$$ they render fine. In your screenshots $e(t)$ and $K_p$ stay as plain text for this reason.

  2. When you see a rendered formula and then a duplicate as raw text right after it, that’s a known bug. The MathML annotation isn’t hidden, so the original LaTeX leaks out.

  3. Matrix brackets pmatrix/bmatrix and \sqrt that sometimes disappear or look smaller are also a known visual bug, I mentioned it above. It’s been reported, there’s no fix timeline yet.

Your idea about having the agent output math that’s guaranteed to render makes sense, I’ll pass it along. For now you can add a User Rule Rules | Cursor Docs, something like:

When writing math, use \(...\) for inline and $$...$$ for block.
Do not use single $ for inline math. Avoid nesting delimiters (no \( inside \[...\]).

This reduces the number of broken formulas a lot. If anything still looks weird after that, send the Request ID right corner of the chat menu > Copy Request ID if Privacy Mode is off, and we can look at the specific case.

好的,谢谢回复。
希望使用体验越来越好。

Thanks. We’ve logged both visual issues on our side, the matrix brackets and \sqrt, and the duplicate formula shown as raw text. I’ll share an update once we have a fix.

Quick reminder on inline math: use \(...\) for inline formulas, and \[...\] or $$...$$ for block formulas. Single $ is intentionally disabled. The User Rule from your last message should greatly reduce broken formulas.

If anything looks weird again, send the Request ID and we’ll check that specific case.