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):
````
```
// ==UserScript==
// @name blah
// @namespace blahblah
// @version 1.0
// @author blah
// @match https://*
// @grant none
// @license MIT
// ==/UserScript==
```
````
You will see the code becomes:
````
```
// UserScript
// @name blah
// @namespace blahblah
// @version 1.0
// @author blah
// @match https://*
// @grant none
// @license MIT
// /UserScript
```
````
# Another Example
## When it **does not** get stripped
1. Copy this (click Copy button):
```
foo==
==bar==
```
2. Paste into Chat as is.
3. The text is fine
## When it gets stripped
1. Copy this (click Copy button):
````
```
foo==
==bar==
```
````
3. Paste into Chat as is.
4. The `==` around `bar` gets stripped and you end up with:
````
```
foo==
bar
```
````
_Originally posted by @TFWol in https://github.com/open-webui/open-webui/discussions/11161_
@TFWol commented on GitHub (Mar 18, 2025):
> You can turn off rich text input, please check for existing discussions before creating a new issue.
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
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 @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