-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[FEAT]: Latex Math Formula Render #2875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi I can help with implementing this |
@Dljdd this would be incredibly useful; thank you. |
It appears that the LaTeX parser being used does not support the delimiters \( ... \) and \[ ... \] that the LLM outputs. Here's a GitHub issue I found asking for a workaround for that package: markdown-it-katex Issue #10 -- No idea why the issue was closed without any resolution. 🥴 |
Maybe we can just fork that library and add more delimiters to cover this? Not sure, but that is basically the root cause here. The main issue is that Edit: Can someone copy-paste some text output that is not rendering in AnythingLLM so i can test this? |
What would you like to see?
Currently it can render code blocks correctly but it cannot render latex formulas. Sometimes the readability of Latex related responses are quite low. For example:

The text was updated successfully, but these errors were encountered: