llama.cpp
llama.cpp copied to clipboard
Misc. bug: WebUI incorrectly displays \( as $ in LLM output
Name and Version
Latest current commit 92bb442ad999a0d52df0af2730cd861012e8ac5c (but also commits 2 weeks before are affected)
Operating systems
No response
Which llama.cpp modules do you know to be affected?
llama-server
Command line
Problem description & steps to reproduce
Give any reasonable instruct LLM this example prompt via WebUI:
Very simple task: Repeat this string assignment exactly as-is, just fenced as Python code: foo = "\(bar\)"
It'll repeat that incorrectly as: foo = "$bar$"
Clicking "Copy code" on the Python markdown box in the answer gives:
foo = "$bar$"
Clicking "copy" on the whole answer gives:
foo = "\(bar\)"
Thus there seems to be an issue with markdown rendering / escaping.
First Bad Commit
No response
Relevant log output
#16599 introduced this bug.