Codex App: inline LaTeX using `$...$` does not render in conversations or Markdown preview
What version of the Codex App are you using?
Observed on Windows with:
- App package:
OpenAI.Codex_26.513.4821.0_x64__2p2nqsd0c76g0 - Codex App product version shown by the running process:
26.513.40821 - bundled
codex.exe:0.131.0-alpha.9
What platform is your computer?
Windows x64.
What issue are you seeing?
Inline LaTeX written with single-dollar delimiters does not render in the Codex App UI.
This appears in at least two places:
- Assistant conversation output in the Codex App.
- Markdown files opened/previewed inside the Codex App.
For example, this remains raw text instead of rendering as inline math:
$x+1=2$
However, the parenthesized LaTeX delimiter does render correctly:
\(x+1=2\)
Display math appears to render correctly in the same environment:
$$
\int_0^1 x^2\,dx = \frac{1}{3}
$$
and:
\[
\int_0^1 x^2\,dx = \frac{1}{3}
\]
Steps to reproduce
- Open Codex App.
- Ask the assistant to output the following Markdown:
Inline dollar: $x+1=2$
Inline parens: \(x+1=2\)
$$
\int_0^1 x^2\,dx = \frac{1}{3}
$$
- Observe that
\(x+1=2\)renders as inline math, while$x+1=2$remains unrendered/raw. - Open or preview a Markdown file in Codex App containing
$x+1=2$and observe the same incompatibility.
Expected behavior
Codex App should either:
- render
$...$as inline math by default, matching common Markdown math behavior in tools such as ChatGPT, GitHub-flavored math Markdown, Typora, Obsidian, and many documentation workflows; or - provide a compatibility setting to enable single-dollar inline math rendering.
Why this matters
Many existing Markdown notes, course materials, technical documents, and generated homework/report files use $...$ for inline math and $$...$$ for display math. Requiring \(...\) only for Codex App compatibility makes these documents less portable and creates friction when working with math-heavy projects.
The current workaround is to write inline math as \(...\), but that requires changing existing Markdown conventions or project instructions even though $...$ is widely used.
Related issues
- #10715 requested rendered LaTeX support in Codex App and was marked completed.
- #22821 reports a related but different block-math parsing issue with
\[...\]after normal text.
This issue is specifically about single-dollar inline math $...$ not rendering in Codex App conversations and Markdown preview/opened files.
7 Comments
I also see this issue in Version 26.513.31313 (2867) on macos.
Incorrect math rendering is a very serious problem for us using codex for mathematics/physics research, and I hope it can be taken seriously.
@yuriever thanks for your comment bro, the problem should be fixed.Maybe you can sue \(...\) firstly.
I can also reproduce this on macOS in Codex Desktop.
A minimal Markdown file with both delimiter styles shows a clear compatibility mismatch between Codex and VS Code:
Observed behavior:
\(...\)inline math and\[...\]block math.$$...$$block math.$...$inline math; it remains raw text.$...$and$$...$$, but does not render\(...\)/\[...\]in the same file.This makes it hard to keep a single Markdown convention for research/code repos that are read both in Codex and VS Code. Supporting
$...$inline math in Codex would match VS Code/GitHub-style Markdown math and avoid project-specific delimiter workarounds.Version 26.715.72359, Released Jul 22, 2026
<img width="516" height="254" alt="Image" src="https://github.com/user-attachments/assets/356dcad8-711d-4ccf-9ad3-273cac4b2fec" />
Plz add full support for dollar delimiter of math equations, which is the delimiter used by most of the markdown editors/viewers (incl Github).
Reproduced on a newer Windows build, and the current behavior appears broader than single-dollar inline parsing.
Environment
OpenAI.Codex_26.715.7063.0_x64__2p2nqsd0c76g0Current behavior
In the right-side Markdown file editor/preview, both inline and display formulas remain raw text:
Basic Markdown styling such as headings and bold text renders, while the equations do not. The same mathematical content can render in the conversation surface, so the two surfaces are inconsistent.
Additional diagnosis
Inspection of this packaged build shows two different rendering paths:
remark-mathandrehype-katex/KaTeX;This means rewriting the document from
\(...\)/\[...\]to$...$/$$...$$cannot provide a reliable fix in the current file-preview implementation. The right-side editor needs its own inline/block math parser and a CodeMirrorWidgetType/decoration that renders KaTeX, with source fallback while the cursor is inside the formula or if parsing fails.Suggested regression coverage: inline math, multiline display math, escaped dollar signs/currency, code spans/fences, unmatched delimiters, cursor editing behavior, light/dark themes, and large-file scrolling.
No private project paths or document contents are included in this report.
I can reproduce a broader variant of this issue on the current macOS Codex App, so I am adding the evidence here instead of opening a duplicate.
Environment
26.715.52143(5591)Darwin 25.5.0 arm64 arm(macOS 26.5.2)Delimiter matrix
I tested all of the following in a conversation:
````md
Inline dollars: $a^2+b^2=c^2$
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$
Inline parentheses: \(\displaystyle \frac{\sqrt{x^2+y^2}}{\sum_{i=1}^{n} i}\)
\[
\int_0^1 x^2\,dx = \frac{1}{3}
\]
````
In this build, none of these forms renders as math in the conversation surface. They remain source text (and the fenced form remains a code block). A simple expression such as
\(E=mc^2\)initially looked ambiguous because its raw form resembles ordinary text, but the fraction/root test above confirms that it is not being typeset.The same
$...$and$$...$$notation renders correctly in VS Code Markdown preview, which makes a single Markdown convention difficult to use across Codex conversations and research notes.Why this matters
For mathematics, physics, ML, optimization, HPC, and systems research, equations are part of the primary technical content rather than decorative Markdown. The model can produce valid LaTeX, but the client currently forces users either to read raw source, copy every equation into another renderer, or instruct the model to degrade formulas to Unicode/plain text. That substantially reduces readability during long derivations and makes conversation output less portable to research notes.
At minimum, it would be valuable for the rich-client conversation renderer to support the GitHub/VS Code-compatible
$...$and$$...$$forms, with\(...\)and\[...\]accepted as aliases if feasible. Copy-as-Markdown should continue preserving the original source. A constrained KaTeX-style renderer with unsafe HTML/URL features disabled would be sufficient for most research workflows.Please consider treating math rendering as a first-class technical/research workflow requirement rather than only a Markdown styling improvement.
I implemented and publicly verified an experimental PoC for the right-side Markdown file editor:
https://github.com/2667741708/codex-markdown-math-patch
Tested on Windows package
OpenAI.Codex_26.715.7063.0_x64/ desktop bundle26.715.52143.The file editor is a separate CodeMirror 6 visual-editing surface; it does not use the conversation Markdown renderer. The PoC adds a CodeMirror replacement widget alongside the existing Mermaid widget and reuses the KaTeX bundle already shipped in the app.
Supported:
$...$and\(...\)inline math$$...$$and\[...\]display mathtrust: false; invalid TeX falls back to sourceValidation completed:
$E=mc^2$reduced the KaTeX count to 3 and exposed the raw sourceThe repository contains no OpenAI binaries and does not modify the signed Store installation. It builds a parallel portable copy and fails closed when the production bundle anchors change.
I could not open a source PR because the public
openai/codexrepository does not contain the desktopreview-file-source-tabfrontend source. The repository is intended as a working implementation reference for the desktop team to port upstream.