[GH-ISSUE #11433] issue: Asterisk character '*' auto converted to underline '_' even in code block #16227

Closed
opened 2026-04-19 22:13:29 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @by-justin on GitHub (Mar 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11433

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.5.20

Ollama Version (if applicable)

Not Applicable

Operating System

From Docker Image

Browser (if applicable)

Not Applicable

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Paste this into the input box:

```
Pixel *p = img->arr + img->width * i + j;
```
What is in the codebox?

The output is expected to print as is.

Actual Behavior

Pixel _p = img->arr + img->width * i + j;

The pair of asterisks have been replaced with _.

Steps to Reproduce

N/A

Logs & Screenshots

Image

Additional Information

This bug is triggered no matter we have code box or not. Modify a preexisting input does not trigger this behaviour.

IMO this is not ideal, webui should not modify user's input.

Originally created by @by-justin on GitHub (Mar 9, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11433 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.5.20 ### Ollama Version (if applicable) Not Applicable ### Operating System From Docker Image ### Browser (if applicable) Not Applicable ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Paste this into the input box: ````markdown ``` Pixel *p = img->arr + img->width * i + j; ``` What is in the codebox? ```` The output is expected to print as is. ### Actual Behavior ``` Pixel _p = img->arr + img->width * i + j; ``` The pair of asterisks have been replaced with `_`. ### Steps to Reproduce N/A ### Logs & Screenshots <img width="566" alt="Image" src="https://github.com/user-attachments/assets/c1c6753f-71eb-4724-8e7f-63ba63489a2c" /> ### Additional Information This bug is triggered no matter we have code box or not. Modify a preexisting input does not trigger this behaviour. IMO this is not ideal, webui should not modify user's input.
GiteaMirror added the bug label 2026-04-19 22:13:29 -05:00
Author
Owner

@tjbck commented on GitHub (Mar 9, 2025):

You can either turn off rich text editor or create a code block manually.

Image
<!-- gh-comment-id:2708786707 --> @tjbck commented on GitHub (Mar 9, 2025): You can either turn off rich text editor or create a code block manually. <img width="571" alt="Image" src="https://github.com/user-attachments/assets/74c4c275-c929-49fc-b4be-d697c0f2ada4" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16227