Originally created by @rssrcr on GitHub (Jul 30, 2024).
I propose the integration and enhancement of KaTeX within the Open WebUI project to address bug #3930. This feature aims to provide users with a more flexible and robust configuration for rendering mathematical expressions.
Proposed Changes:
Support for Multiple Delimiters:
Allow the use of both dollar signs ($ for inline and $$ for display) and LaTeX-style delimiters (\( and \) for inline, \[ and \] for display). This will enhance user experience by accommodating different LaTeX usage preferences.
Equation Environment:
Introduce support for the LaTeX equation environment using \begin{equation} and \end{equation}. This feature will enable users to write numbered equations easily, improving the clarity and organization of mathematical content.
Configuration Example:
Provide a sample configuration that demonstrates how to set up KaTeX with the proposed delimiters and equation environment. This will serve as a guide for users to implement the changes effectively.
Benefits:
This enhancement will resolve the current limitations faced by users regarding mathematical rendering in the Open WebUI, making it more versatile and user-friendly.
By supporting multiple delimiters and the equation environment, users will have greater flexibility in how they present mathematical content, catering to a wider range of use cases.
I believe that these improvements will significantly enhance the functionality of the Open WebUI project and look forward to the community's support in implementing this feature.
Originally created by @rssrcr on GitHub (Jul 30, 2024).
I propose the integration and enhancement of KaTeX within the Open WebUI project to address bug #3930. This feature aims to provide users with a more flexible and robust configuration for rendering mathematical expressions.
**Proposed Changes:**
1. **Support for Multiple Delimiters:**
- Allow the use of both dollar signs (`$` for inline and `$$` for display) and LaTeX-style delimiters (`\(` and `\)` for inline, `\[` and `\]` for display). This will enhance user experience by accommodating different LaTeX usage preferences.
2. **Equation Environment:**
- Introduce support for the LaTeX equation environment using `\begin{equation}` and `\end{equation}`. This feature will enable users to write numbered equations easily, improving the clarity and organization of mathematical content.
3. **Configuration Example:**
- Provide a sample configuration that demonstrates how to set up KaTeX with the proposed delimiters and equation environment. This will serve as a guide for users to implement the changes effectively.
**Benefits:**
- This enhancement will resolve the current limitations faced by users regarding mathematical rendering in the Open WebUI, making it more versatile and user-friendly.
- By supporting multiple delimiters and the equation environment, users will have greater flexibility in how they present mathematical content, catering to a wider range of use cases.
I believe that these improvements will significantly enhance the functionality of the Open WebUI project and look forward to the community's support in implementing this feature.

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.
Originally created by @rssrcr on GitHub (Jul 30, 2024).
I propose the integration and enhancement of KaTeX within the Open WebUI project to address bug #3930. This feature aims to provide users with a more flexible and robust configuration for rendering mathematical expressions.
Proposed Changes:
Support for Multiple Delimiters:
$for inline and$$for display) and LaTeX-style delimiters (\(and\)for inline,\[and\]for display). This will enhance user experience by accommodating different LaTeX usage preferences.Equation Environment:
\begin{equation}and\end{equation}. This feature will enable users to write numbered equations easily, improving the clarity and organization of mathematical content.Configuration Example:
Benefits:
I believe that these improvements will significantly enhance the functionality of the Open WebUI project and look forward to the community's support in implementing this feature.
@rssrcr commented on GitHub (Jul 30, 2024):
I believe Perplexity.ai uses the same strategy. Very effective IMHO.
@rssrcr commented on GitHub (Jul 30, 2024):
Here's all the code you need:
@rssrcr commented on GitHub (Jul 30, 2024):
@tjbck, can I ask why it was closed?