mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #18507] feat: Switch KaTeX to MathJax #57282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @atkirtland on GitHub (Oct 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18507
Check Existing Issues
Problem Description
KaTeX rendering is unstable and constantly breaks for moderate-length messages with multiple LaTeX formulas. When it breaks, the plaintext is just shown in red. I frequently have to copy and paste responses into a Markdown viewer with MathJax like Obsidian to render the equations properly.
Desired Solution you'd like
Switch the implemented library from KaTeX to MathJax. MathJax also supports a much wider range of packages, which are sometimes useful in rendering LLM responses.
Alternatives Considered
Not sure what could be done; KaTeX has always been unstable for me on other software as well.
Additional Context
No response