Skip to content

Render LaTeX math in chat for research workflows #8430

Description

@maximilianigl

Problem

Chat messages currently show LaTeX delimiters and formula source as plain text instead of rendering the mathematics. This makes research conversations harder to read, verify, and reuse.

Mathematical notation matters across scientific and technical research. It is especially common in AI and machine-learning work, where agent responses need to present loss functions, probability distributions, matrix operations, gradients, and evaluation metrics accurately. Raw TeX obscures the structure of those expressions and makes detailed research discussions needlessly difficult to follow.

Expected behavior

  • Render inline \(...\) and display \[...\] formulas in chat.
  • Keep ordinary dollar amounts, code, links, and escaped delimiters unchanged.
  • Preserve the LaTeX source when users copy rendered formulas.
  • Keep long formulas usable in narrow chat layouts.
  • Show malformed formulas safely without breaking the surrounding message.

Scope

This issue covers math rendering in the shared web chat interface, including the web and desktop clients that use it.

A concrete inline-math bug report also exists in #4585.

Proposed implementation: #7166

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