mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why
An unsupported `\underbrace` leaves the display equation as LaTeX source,
so readers have to interpret which terms each label groups.
## What changed
Render `\underbrace{expression}_{label}` with a Unicode brace that spans
the expression's terminal columns and a label centered below it. Keep
surrounding math aligned with the expression. Inline math, unsupported
arguments, and layouts that exceed the available width still use the
existing fallback.
## Testing
Add a snapshot for labeled Boolean clauses, short expressions, and labels
wider than their expressions. Check fallback for inline, malformed,
nested, multiline, and over-width cases.
GitOrigin-RevId: 8fbe92d512d06c73cf21247343ad869743bebd0c