[GH-ISSUE #5766] [BUG]: Math inline formula rendering broken when containing \operatorname{} #5561

Closed
opened 2026-06-07 16:36:39 -04:00 by yindo · 0 comments
Owner

Originally created by @Primuline on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5766

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Inline math formulas containing \operatorname{} are not rendered correctly.
The $ delimiters appear to be stripped, leaving bare LaTeX commands in plain text.

Additional Context

  • The raw API response JSON contains correct $ delimiters (verified via browser devtools)
  • The same model + prompt renders correctly in OpenWebUI
  • Issue appears specific to \operatorname{}

Are there known steps to reproduce?

Ask the model to output any formula containing \operatorname, for example:
Assume \Pi=\{z\in\mathbb C:\operatorname{Re}z>0\}

LLM Provider & Model (if applicable)

DeepseekV4-flash

Embedder Provider & Model (if applicable)

bge-m3

Originally created by @Primuline on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5766 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Inline math formulas containing \operatorname{} are not rendered correctly. The $ delimiters appear to be stripped, leaving bare LaTeX commands in plain text. Additional Context - The raw API response JSON contains correct $ delimiters (verified via browser devtools) - The same model + prompt renders correctly in OpenWebUI - Issue appears specific to \operatorname{} ### Are there known steps to reproduce? Ask the model to output any formula containing \operatorname, for example: Assume $\Pi=\{z\in\mathbb C:\operatorname{Re}z>0\}$ ### LLM Provider & Model (if applicable) DeepseekV4-flash ### Embedder Provider & Model (if applicable) bge-m3
yindo added the possible bug label 2026-06-07 16:36:39 -04:00
yindo closed this issue 2026-06-07 16:36:39 -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#5561