openai / openai/codex

Markdown/LaTeX math is not rendered in the Codex TUI

Open
#42,226 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CLI enhancement TUI
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Description

LaTeX/math markup is not rendered as a formula in the Codex TUI. Instead, raw text and isolated delimiter fragments are displayed.

Reproduction

An assistant response containing, for example:

[
Q \rightarrow QH_2
]

or:

\[
QH_2 \rightarrow Q
\]

is not rendered as mathematical notation in the TUI. The [ and ] lines and the formula text appear unformatted.

Expected behavior

Mathematical expressions should either be rendered correctly or automatically displayed using a readable plain-text fallback, for example:

Q -> QH2
QH2 -> Q

A robust fallback would be useful for inline and display math because terminal rendering pipelines may not support LaTeX.

Environment

  • Codex TUI
  • Terminal rendering
  • Observed with Markdown/LaTeX math in assistant responses

Additional context

If full math rendering is not currently supported in the TUI, the output pipeline could convert delimiters such as \\[, \\], \\(, and \\), together with common operators, into readable ASCII—or display the expression as a single contiguous code block.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Codex TUI with assistant responses containing the Markdown and LaTeX examples from the report, then trace the terminal rendering pipeline that handles those responses. Done means inline and display math no longer shows raw delimiters or isolated fragments, and unsupported expressions receive a readable contiguous plain-text fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, markdown
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.