Render LaTeX Math in Codex CLI

Open 💬 4 comments Opened Aug 18, 2026 by lucamungo

What variant of Codex are you using?

CLI

What feature would you like to see?

One feature that would significantly improve the experience of using Codex CLI for technical work would be rendering LaTeX math instead of displaying the raw source.

At the moment, Markdown is rendered nicely, but mathematical expressions appear as raw LaTeX instead of a properly typeset equation.

When discussing technical topics, responses often contain many equations. Reading raw TeX quickly becomes cumbersome and interrupts the flow of the conversation. It would be great if Codex CLI could render both inline math ($...$) and display math ($$...$$) using a renderer like MathJax (or another lightweight terminal-friendly solution). This would make the CLI much more pleasant to use.

Additional information

_No response_

View original on GitHub ↗

4 Comments

patrideo · 9 days ago

I'd love to see this too.

Though there should be some graceful degradation i.e. if an equation fails to parse or contains unsupported LaTeX macros, it should restate the failed line in raw LaTeX.

Additionally, for those working on LaTeX documents with a need to copy the raw markdown there should be a toggle in the config (e.g. render_latex = true/false).

t-hae · 9 days ago

Definitely would like to see that as well! The way formulas are displayed currently basically makes them unreadable.

nullbio · 6 days ago

+1. Super annoying seeing raw Latex.

It should be switchable with alt+r by the way.

sehunfromdaegu · 2 days ago

This is one of the most urgent issues that need to be addressed. URGENT.