[GH-ISSUE #20417] issue: Preceding character incorrectly deleted when typing Markdown inline code #57846

Closed
opened 2026-05-05 21:44:41 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @July791 on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20417

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.43

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24.04

Browser (if applicable)

No response

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 provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When typing text followed immediately by Markdown inline code syntax (backticks), the text preceding the code block should remain intact. For example, typing "Hello123" should result in the word "Hello" followed by the inline code block 123, without deleting any characters from the original word.

Actual Behavior

When entering inline code using backticks, the character immediately preceding the opening backtick is incorrectly deleted. Using the example above, typing "Hello123" results in Hell followed by the code block 123. The letter "o" is removed automatically when the Markdown formatting is applied.

Steps to Reproduce

  1. Launch OpenWebUI (Version 0.6.43).
  2. Navigate to the main chat interface.
  3. Click on the message input field to focus it.
  4. Type the word "Hello" (do not add a trailing space).
  5. Immediately type an opening backtick character: ` .
  6. Type the content for the code block, for example: 123.
  7. Type a closing backtick character: ` .
  8. Observe that upon completing the Markdown syntax, the last character of the preceding word (the 'o' in "Hello") is automatically deleted, resulting in "Hell123".

Logs & Screenshots

Image

Additional Information

No response

Originally created by @July791 on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20417 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.43 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24.04 ### Browser (if applicable) _No response_ ### 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 **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When typing text followed immediately by Markdown inline code syntax (backticks), the text preceding the code block should remain intact. For example, typing "Hello`123`" should result in the word "Hello" followed by the inline code block 123, without deleting any characters from the original word. ### Actual Behavior When entering inline code using backticks, the character immediately preceding the opening backtick is incorrectly deleted. Using the example above, typing "Hello`123`" results in Hell followed by the code block 123. The letter "o" is removed automatically when the Markdown formatting is applied. ### Steps to Reproduce 1. Launch OpenWebUI (Version 0.6.43). 2. Navigate to the main chat interface. 3. Click on the message input field to focus it. 4. Type the word "Hello" (do not add a trailing space). 5. Immediately type an opening backtick character: ` . 6. Type the content for the code block, for example: `123`. 7. Type a closing backtick character: ` . 8. Observe that upon completing the Markdown syntax, the last character of the preceding word (the 'o' in "Hello") is automatically deleted, resulting in "Hell`123`". ### Logs & Screenshots <img width="1061" height="432" alt="Image" src="https://github.com/user-attachments/assets/bbb8c394-fca2-45b1-bbfb-29bd942b171a" /> ### Additional Information _No response_
GiteaMirror added the bugconfirmed issue labels 2026-05-05 21:44:42 -05:00
Author
Owner

@silentoplayz commented on GitHub (Jan 7, 2026):

I am able to reproduce this issue on the latest dev when Rich Text Input for Chat is toggled on in the user settings menu.

<!-- gh-comment-id:3720696309 --> @silentoplayz commented on GitHub (Jan 7, 2026): I am able to reproduce this issue on the latest `dev` when `Rich Text Input for Chat` is toggled on in the user settings menu.
Author
Owner

@Classic298 commented on GitHub (Mar 7, 2026):

e303c3da3b

<!-- gh-comment-id:4017674337 --> @Classic298 commented on GitHub (Mar 7, 2026): https://github.com/open-webui/open-webui/commit/e303c3da3b174da9e92a79b174f85ba574ca06ef
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57846