[GH-ISSUE #318] feat: render LaTeX math in chat #230

Open
opened 2026-10-18 14:03:59 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @sho-kawano on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/318

Computer’s chat displays LaTeX as plain text, making mathematical conversations difficult to read.

I implemented support for standard inline/display delimiters and fenced math blocks using the existing KaTeX dependency. It works in both Claude and Codex chats; regression tests and the production build pass.

Link to my branch with the fix

Would you be open to this contribution, and how would you prefer it submitted?

Here is a before and after:

Before: LaTeX displayed as text After: rendered math
Originally created by @sho-kawano on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/open-webui/computer/issues/318 Computer’s chat displays LaTeX as plain text, making mathematical conversations difficult to read. I implemented support for standard inline/display delimiters and fenced math blocks using the existing KaTeX dependency. It works in both Claude and Codex chats; regression tests and the production build pass. [Link to my branch with the fix](https://github.com/sho-kawano/computer/tree/fix/chat-math-rendering) Would you be open to this contribution, and how would you prefer it submitted? Here is a before and after: <img width="480" alt="Before: LaTeX displayed as text" src="https://github.com/user-attachments/assets/3bf475be-fbf2-433b-9ba1-b4ac764c8060" /> <img width="480" alt="After: rendered math" src="https://github.com/user-attachments/assets/9d8124b9-d4ff-453b-bdd3-8feac1191ba2" />
Author
Owner

@owui-terminator[bot] commented on GitHub (Oct 13, 2026):

⚠️ Missing Issue Title Prefix

@sho-kawano, your issue title is missing a categorising prefix (e.g. bug:, feat:, docs:).

Please update the title to lead with one of:

  • bug: bug report or error
  • feat: feature request or enhancement
  • docs: documentation issue
  • question: usage question
  • help: support request

Example: bug: Login fails when the password contains special characters

<!-- gh-comment-id:6136427188 --> @owui-terminator[bot] commented on GitHub (Oct 13, 2026): # ⚠️ Missing Issue Title Prefix @sho-kawano, your issue title is missing a categorising prefix (e.g. `bug:`, `feat:`, `docs:`). Please update the title to lead with one of: - **bug**: bug report or error - **feat**: feature request or enhancement - **docs**: documentation issue - **question**: usage question - **help**: support request Example: `bug: Login fails when the password contains special characters`
Author
Owner

@owui-terminator[bot] commented on GitHub (Oct 13, 2026):

🔍 Related Issues Found

I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:

  1. 🟣 #141 bug: Chat bubble displays HTML-encoded special characters and raw markdown instead of rendered output
    This is the closest match: it reports chat bubbles rendering raw markdown instead of formatted output. While it focuses on code fences and HTML encoding rather than LaTeX, the underlying problem is the same class of chat rendering bug.
    by JKGeovision

  2. 🟢 #247 feat: HTML file cards should render inline in chat like the Markdown preview
    This is related at the chat-display layer because it requests richer inline rendering for content shown in chat. It is not about math specifically, but it touches the same UI area where message content is rendered.
    by JKGeovision


💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.

This comment was generated automatically. React with 👍 if helpful, 👎 if not.

<!-- gh-comment-id:6136429570 --> @owui-terminator[bot] commented on GitHub (Oct 13, 2026): <!-- terminator-bot:related-issues-reply --> 🔍 **Related Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. 🟣 [#141](https://github.com/open-webui/computer/issues/141) **bug: Chat bubble displays HTML-encoded special characters and raw markdown instead of rendered output** *This is the closest match: it reports chat bubbles rendering raw markdown instead of formatted output. While it focuses on code fences and HTML encoding rather than LaTeX, the underlying problem is the same class of chat rendering bug.* *by JKGeovision* 2. 🟢 [#247](https://github.com/open-webui/computer/issues/247) **feat: HTML file cards should render inline in chat like the Markdown preview** *This is related at the chat-display layer because it requests richer inline rendering for content shown in chat. It is not about math specifically, but it touches the same UI area where message content is rendered.* *by JKGeovision* --- 💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead. *This comment was generated automatically.* React with 👍 if helpful, 👎 if not.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/computer#230
No description provided.