mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 20:47:57 -05:00
enh: configurable latex delimiters #1049
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0x7CFE on GitHub (May 27, 2024).
Is your feature request related to a problem? Please describe.
OpenWebUI is able to render TeX markup when it's enclosed in double
$signs, such as$$y = f(x)$$. I did my best but failed to explain that to Llama-3. It still uses single$once in a while.Describe the solution you'd like
It would be nice to have a way to configure the renderer, so that single
$entries would also be treated as TeX markup. Even better if$quotes would be automatically treated and correctly rendered as an inline markup.Describe alternatives you've considered
$styled formulas.Additional context
Sample output: https://openwebui.com/c/korvin/340ca756-a00b-4408-8acc-bc0c39fbb426
Note that some formulas are syntactically correct but not rendered properly due to single
$quotation.It looks even worse in the UI:

@Yanyutin753 commented on GitHub (Jul 6, 2024):
Me, too. Sometimes the math doesn't work
@Yanyutin753 commented on GitHub (Jul 10, 2024):
Sometimes the math doesn't work
@Yanyutin753 commented on GitHub (Jul 17, 2024):
https://github.com/open-webui/open-webui/pull/3930 Look at this. I tried to solve this problem
@MangoFF commented on GitHub (Aug 9, 2024):
why not fix it?
@Yanyutin753 commented on GitHub (Aug 9, 2024):
The version is not the same, the author can pay attention to the latest dev version after the fix, and provide corresponding examples so that the author can better fix
@chrisoutwright commented on GitHub (Sep 1, 2024):
For me it breaks in version 0.3.16 still when models are using $$ without newlines. And if it uses align or equation environments, it would break also.
If told to do newlines with $$ then it's ok
I added the following styleguide and it helped a bit:
`
@RexWzh commented on GitHub (Sep 1, 2024):
Same issue, the tex rendering is not working: