You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: math equations rendered as raw LaTeX source — agents not instructed to use KaTeX-compatible syntax #15053
The opencode web/desktop frontend renders math using KaTeX, which requires $...$ for inline equations and $$...$$ (flush-left, surrounded by blank lines) for display equations. However, the system prompts for all agent families give no instruction about this. LLMs default to \(...\) and \[...\], which KaTeX cannot parse, so equations appear as raw LaTeX source instead of rendered formulas (see the screenshot).
Expected behavior: Equations should be rendered by KaTeX as properly formatted math.
This issue might be a duplicate of existing issues. Please check:
Desktop: Katex Parse Error Bug while using GLM-5 #14748: Desktop: Katex Parse Error Bug while using GLM-5 — also involves KaTeX rendering failures in the desktop app, though the root cause described there is different (parse error with table content vs. LLM using wrong math delimiters)
This issue might be a duplicate of existing issues. Please check:
Desktop: Katex Parse Error Bug while using GLM-5 #14748: Desktop: Katex Parse Error Bug while using GLM-5 — also involves KaTeX rendering failures in the desktop app, though the root cause described there is different (parse error with table content vs. LLM using wrong math delimiters)
No I had checked it and it had nothing to do with the current issue.
It extends the agent-shell Emacs package by adding a live equation rendering in SVG format. It feels amazing. And it shows the power of Emacs, allowing for easy customizations compared to other editors.
Activity
github-actions commentedon Feb 25, 2026
This issue might be a duplicate of existing issues. Please check:
alberti42 commentedon Feb 26, 2026
No I had checked it and it had nothing to do with the current issue.
hectorandac commentedon Jun 16, 2026
I'm facing the same issue would be nice to have a fix for this I'm using gemma 4 and I can't understand any formulas :'(
alberti42 commentedon Jun 25, 2026
I designed, and Claude wrote, an Emacs extension that makes user experience 100% better than in the original OpenCode TUI.
https://www.reddit.com/r/emacs/comments/1ufbipv/for_scientists_and_learners_agentshell_renders/
It extends the agent-shell Emacs package by adding a live equation rendering in SVG format. It feels amazing. And it shows the power of Emacs, allowing for easy customizations compared to other editors.
github-actions commentedon Aug 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
arefks commentedon Aug 27, 2026
same issue for me