mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
issue: [Chat] (initial message only) Code pasted in codeblocks immediately converted to wrong characters (see video) #4465
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 @TFWol on GitHub (Mar 17, 2025).
It's been doing this for as long as I can remember. Maybe ever since the introduction of rich input.
https://github.com/user-attachments/assets/5ad2e96a-9e61-465b-8d6a-bd1949b89215
ex:
Copy and paste this into chat (include the triple backticks):
You will see the code becomes:
Another Example
When it does not get stripped
When it gets stripped
==aroundbargets stripped and you end up with:Originally posted by @TFWol in https://github.com/open-webui/open-webui/discussions/11161
@TFWol commented on GitHub (Mar 17, 2025):
Also, words surrounded by
*get converted to_.Ex:
*broken*becomes_broken_@tjbck commented on GitHub (Mar 18, 2025):
You can turn off rich text input, please check for existing discussions before creating a new issue.
@TFWol commented on GitHub (Mar 18, 2025):
Right, but that doesn't fix the core problem of rich input being messed up, hence the Issue.
I do see your point about the other existing issue though.
Duplicate of #6973