Skip to content

Chat: inline LaTeX math (\( ... \)) renders as raw source instead of formatted math #4585

Description

@info-alphanimble

Summary

Inline LaTeX math in assistant chat messages does not render. Formulas written with \(...\) delimiters show up as raw TeX source (looking like (formula)) instead of formatted math.

Repro

  1. Ask the assistant for math (e.g. a list of equations).
  2. Assistant replies with Markdown containing inline math, e.g.:
- \(\cos(E_q(q), E_d(d))\)
- \(\log(1 + e^{s_{ik} - s_{ij}})\)
- \(A_t = \lambda_t A_t^{\text{local}} + (1-\lambda_t)A^{\text{global}}\)
  1. In the chat UI, the formulas appear unrendered as plain text / parenthesized TeX, not as math.

Observed in dark-mode chat at ~12:09 AM; copy button and timestamp render fine — only math fails.

Expected

Inline and block math should render via KaTeX/MathJax (or equivalent), e.g. (\log(1 + e^{s_{ik} - s_{ij}})) as formatted math.

Actual

Raw LaTeX is shown in the message bubble. Example of what appears:

  • (\cos(E_q(q), E_d(d)))
  • (\log(1 + e^{s_{ik} - s_{ij}}))
  • (A_t = \lambda_t A_t^{\text{local}} + (1-\lambda_t)A^{\text{global}})

Notes / related

Looks like the same class of bug as existing open issues; filing with a concrete chat repro:

Happy to close as duplicate of #6824 / #52 if preferred — this report is mainly the concrete chat repro with \(...\) delimiters.

Environment

  • App: t3code chat UI
  • Theme: dark mode
  • Content: assistant message with bulleted inline math

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions