[PR #5771] Upgrade KaTeX from 0.6.0 to 0.16.11 to support modern LaTeX commands #5573

Open
opened 2026-06-07 16:45:28 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5771
Author: @iavisheksinha
Created: 6/6/2026
Status: 🔄 Open

Base: masterHead: fix/katex-modern-commands


📝 Commits (1)

  • 4e798a7 fix(frontend): upgrade katex to 0.16.11

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 frontend/package.json (+1 -1)

📄 Description

Summary

The frontend currently uses KaTeX 0.6.0, which lacks support for several commonly used LaTeX commands.

This PR upgrades KaTeX to 0.16.11.

Fixed Examples

  • \boxed{x+1}
  • \cancel{x}
  • \color{red}{x}
  • \begin{bmatrix}1&2\3&4\end{bmatrix}

Verification

Tested rendering before and after the upgrade.

Previously unsupported commands now render correctly, while existing expressions continue to render as expected.


🔄 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/Mintplex-Labs/anything-llm/pull/5771 **Author:** [@iavisheksinha](https://github.com/iavisheksinha) **Created:** 6/6/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/katex-modern-commands` --- ### 📝 Commits (1) - [`4e798a7`](https://github.com/Mintplex-Labs/anything-llm/commit/4e798a7599436819daaf665f1b6c98872bd992e3) fix(frontend): upgrade katex to 0.16.11 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package.json` (+1 -1) </details> ### 📄 Description ## Summary The frontend currently uses KaTeX 0.6.0, which lacks support for several commonly used LaTeX commands. This PR upgrades KaTeX to 0.16.11. ## Fixed Examples - \boxed{x+1} - \cancel{x} - \color{red}{x} - \begin{bmatrix}1&2\\3&4\end{bmatrix} ## Verification Tested rendering before and after the upgrade. Previously unsupported commands now render correctly, while existing expressions continue to render as expected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-07 16:45:28 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5573