mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #5675] [MERGED] fix: Fix KaTeX Rendering (Followup) #8534
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/5675
Author: @sp301415
Created: 9/24/2024
Status: ✅ Merged
Merged: 9/24/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
d501ecefix: Fix KaTeX corner cases📊 Changes
1 file changed (+15 additions, -10 deletions)
View changed files
📝
src/lib/utils/marked/katex-extension.ts(+15 -10)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
While most of the KaTeX rendering issues were fixed in #5655, there were some remaining corner cases.
For example,
Also, mixing inline math and special characters lead to rendering errors, such as
(\(a\)). This PR attempts to fix them.Changed
\[ ... \]acts as an inline delimiter, and\[\n ... \n\]acts as an block delimiter.\begin{equation} ... \end{equation}to the delimiters.Screenshots or Videos
Before:






After:
Before:
After:
It also fixes #3577.
Before:
After:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.