@danilowanner testing urgently wanted and confirmation from your side that this PR helps you
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/22196
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 3/3/2026
**Status:** ✅ Merged
**Merged:** 3/5/2026
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `perf/precompile-katex-unicode-regex`
---
### 📝 Commits (3)
- [`5d5fb1d`](https://github.com/open-webui/open-webui/commit/5d5fb1da21f57dd7bd551639a07529db5946186b) perf: pre-compile KaTeX Unicode regex at module load time
- [`7ebcaad`](https://github.com/open-webui/open-webui/commit/7ebcaadbfd5450ecb076c75fd64dea9d27b471c7) perf: replace katexStart with single-pass character scan
- [`2462c1e`](https://github.com/open-webui/open-webui/commit/2462c1efcc6d55d41a2d2c68b3c103e01b348e3e) Update katex-extension.ts
### 📊 Changes
**1 file changed** (+25 additions, -36 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/utils/marked/katex-extension.ts` (+25 -36)
</details>
### 📄 Description
# This PR was heavily tested by me
and will fix this discussion: https://github.com/open-webui/open-webui/discussions/20878
https://github.com/user-attachments/assets/b1c6f800-4831-4b84-83a8-f30fef44518f
@danilowanner testing urgently wanted and confirmation from your side that this PR helps you
### Contributor License Agreement
<!--
🚨 DO NOT DELETE THE TEXT BELOW 🚨
Keep the "Contributor License Agreement" confirmation text intact.
Deleting it will trigger the CLA-Bot to INVALIDATE your PR.
-->
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22196
Author: @Classic298
Created: 3/3/2026
Status: ✅ Merged
Merged: 3/5/2026
Merged by: @tjbck
Base:
dev← Head:perf/precompile-katex-unicode-regex📝 Commits (3)
5d5fb1dperf: pre-compile KaTeX Unicode regex at module load time7ebcaadperf: replace katexStart with single-pass character scan2462c1eUpdate katex-extension.ts📊 Changes
1 file changed (+25 additions, -36 deletions)
View changed files
📝
src/lib/utils/marked/katex-extension.ts(+25 -36)📄 Description
This PR was heavily tested by me
and will fix this discussion: https://github.com/open-webui/open-webui/discussions/20878
https://github.com/user-attachments/assets/b1c6f800-4831-4b84-83a8-f30fef44518f
@danilowanner testing urgently wanted and confirmation from your side that this PR helps you
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.