[Feature]: LaTeX rendering support
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I am describing a concrete problem or use case, not just a vague idea.
Area
apps/desktop
Problem or use case
I'd like math to be rendered in the chat history view (and in the message composition view if you're feeling adventurous). So $O(d)$ becomes $O(d)$. Same for $$\frac{T^3}{d}$$:
$$\frac{T^3}{d}$$
Proposed solution
I know of katex for this, but don't want to make recommendations. You'll find what's best more readily than I would I'm sure.
Why this matters
I'd like to use t3-code for less-coding oriented work. I need math rendered very, very often. I haven't even tested anything else in t3-code yet! 😅 Also need tables and general markdown support but that seems mostly in? Again, haven't tested everything. Also didn't see any issues mentioning math, latex, katex in the tracker so I was quite surprised.
Smallest useful scope
Full latex rendering support for the type of math expected to be output by current frontier models as part of the response, and not as latex code specifically.
Alternatives considered
Copy the response and render it in VSCode preview. Very cumbersome.
Risks or tradeoffs
No response
Examples or references
No response
Contribution
- [x] I would be open to helping implement this.
not planned. latex rendering eats performance like nothing else and we're not focusing that kind of audience
Wanted to add another voice here. I'd love to use this great UI for math, physics, and ML work, but unrendered LaTeX in the chat is genuinely hard to read.
Would the team be open to reconsidering this as a fully opt-in feature?
- Off by default — zero impact for users who don't need it
- Lazy-loaded — only pulled in when the setting is enabled, no bundle cost otherwise
- Scoped to
$...$/$$...$$patterns — no processing on messages without math
Happy to contribute a PR if there's openness to this approach.
Adding another voice to this, a lot of the projects I work on are in the AI/ML/physics space and latex is everywhere.
Would the team be open to reconsidering this as a fully opt-in feature?
If it doesn't add too much complexity, fine. But having dealt with latex and LLM responses in t3 chat i know that if we add it people will create issues when some subset aren't supported and suddenly we have tons of remark plugins parsing latex 🙃🙃
Just thinking out loud here. Not involved in web/application development at all; so this is not a comment on expected complexity.
Can we instead have an extension system ONLY for rendering (to start with)? So users can make, share, and use their own additions to supported page renders.
Maybe with different tiers. (1) is allowed to produce and insert SVG or images, (2) allowed to insert a specific set of no-side-effect tags (I think katex and co render the math as MathML in the end?), (3) can insert sandboxed pages as frames.
Maybe?
Hope it helps, just a few lines of code (https://github.com/hongjiaherng/t3code/tree/feat/chat-math-katex) I made the Actions such that it'll always look for the latest stable release, and rebase my katex commit on top of it. It'll work fine automatically unless big refactor that causes merge conflict, that case, I'll fix that in a PR.
Download latest stable release from here: https://github.com/hongjiaherng/t3code/releases
Gonna stick with this until this is finally being considered or any extension/plugin systems are being built
It's unfortunate that this isn't considered. I would happily wait more for the latex to render as opposed to seeing a bunch of $$... that might as well take infinite time to render because it's basically not human readable in text form without massive effort.
Update: I opened Ideas discussion #9641 with a current September 4 reproducible example and screenshot. I am linking it here because the repository now directs feature requests to the Ideas category and restricts new issue creation.
This is an Ideas-category companion and current evidence, not a claim that the underlying LaTeX/math rendering request is resolved or a reason to close this report. If automated triage sees the cross-reference, please treat #9641 as the canonical place for the new discussion while preserving the request and its history here rather than closing it as a duplicate solely because it points to the Ideas discussion.
not planned. latex rendering eats performance like nothing else and we're not focusing that kind of audience
It's true but it's really a PITA to copy paste what AI generates to a LaTeX renderer because you need to fill in the frame. A markdown editor with inline math support however, always fails to recognize what LLM loves to use \[\] instead of $$. Afaik T3 code does not have memory so I can't just tell the model "remember to use $$ instead of \[\] "... It's really, really painful
You can render math in HTML instead of LaTeX, add this as an instruction in AGENTS.md
You can render math in HTML instead of LaTeX, add this as an instruction in AGENTS.md
It does not work as clearly.
The above is codex app and the one bellow is T3 code with specific instructions to use math in HTML
For anyone who needs this in the meantime, I built an unofficial add-on for the Windows desktop app: t3-latex.
- No fork and no patched install. You open T3 from a separate "T3 Code (LaTeX)" shortcut, which loads KaTeX into the official app at startup. Opened from its own icon, T3 is exactly as shipped, and auto-updates keep working. It works with Stable and Nightly.
- What it renders:
$…$,$$…$$,\(…\),\[…\]and bare\begin{align}blocks. Prices like$5 and $10,$HOMEand code stay text, and so does an unclosed$$or\[while a reply is still streaming. - Copy and Cite give the TeX source.
- Performance: each formula is typeset once and cached, so a streaming reply doesn't re-run KaTeX on every token. And it only runs for people who open T3 through the shortcut.

To install, download the zip from Releases, extract it and double-click install.cmd.
It's unofficial, so please report problems on the t3-latex repo rather than here.
For anyone waiting for this to be added, in the meantime you can ask the agent to use the new visualization tool (that might only be on nightly?) which will render LaTeX.
[!NOTE] Written by
claude-opus-5-5on behalf of TheAnimatrix
@juliusmarminge Five opt-in PRs now wait on the condition you set here, and triage parks each one for a ruling. There is a yes/no question for the smallest of them in #9641: https://github.com/pingdotgg/t3code/discussions/9641#discussioncomment-18863662. It is 582 runtime lines, no new packages, off by default, and can be narrowed further if you prefer. A one-word answer either way unblocks all five.
[!NOTE] Claude Opus 5.5 is posting this on behalf of @hkarlsen06.
Update (Oct 20): T3 Code now renders math natively. #18735 added Settings → Appearance → Render math, off by default, on web, desktop, and mobile. It's in nightly builds now and isn't in a stable release yet.
Until it reaches stable, @hkarlsen06's skill is a workaround that uses the inline HTML renderer. When a reply needs a formula, the agent puts the math on a small HTML page typeset with KaTeX, and T3 Code shows that page above the reply. The reply itself stays plain text. Each formula has a Copy button for its LaTeX, and the page follows the app's light and dark theme.
npx skills add hkarlsen06/skills --skill show-math
The agent has to run inside T3 Code v0.1.0 or later, because the skill uses T3's html_render tool. The repo explains how it works and how to install it by hand: https://github.com/hkarlsen06/skills
Closing since we're all just theo's workers at this point. Moving to mousse.work
Additional reproduction report from T3 Code on Windows, using the Codex provider (GPT-6.1-Sol). Posted with the user's authorization.
While working through computer architecture/cache calculations, assistant responses containing math display as raw LaTeX instead of formatted equations. Changing delimiter styles did not resolve it.
Steps to reproduce
- Open a Codex conversation in T3 Code.
- Ask the assistant to output the following as normal response text, outside code fences:
Inline with backslash delimiters: \(4 \times 8 = 32\)
Display with backslash delimiters:
\[
\text{Total} = 8(32 + 5 + 1) = \boxed{304\text{ bits}}
\]
Inline with dollar delimiters: $4 \times 8 = 32$
Display with dollar delimiters:
$$
8(32 + 5 + 1) = 304
$$
- Inspect the completed response.
Observed behavior
The user's screenshots confirm both delimiter styles fail to typeset. With backslash delimiters, the delimiters appear as ordinary parentheses/brackets and commands such as \times, \log_2, \text, and \boxed remain visible. With dollar delimiters, the literal $ and $$ markers and LaTeX commands remain visible.
Expected behavior and impact
Readable mathematical notation in assistant explanations. This makes otherwise simple educational/technical answers difficult to read, and switching delimiter styles does not help. Plain text such as 8 × (32 + 5 + 1) = 304 bits is a usable fallback.
Environment and limits
- Windows; T3 Code; Codex provider, GPT-6.1-Sol.
- Exact T3 Code version/build was not collected.
- The user reports Claude renders math successfully, but no controlled Claude comparison was performed, so this does not establish a provider-specific regression or its cause.
- Evidence is from the user's screenshots of this conversation; no application source changes or independent build testing were performed.
I found #12609 and the maintainer's duplicate classification before posting. Adding these concrete examples here rather than opening another duplicate bug; I understand the repository currently tracks this as a feature request, with related discussion in #9641.