mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-30 17:25:30 -05:00
[GH-ISSUE #7383] Closing markdown tag \\\` in input box does not preserve new lines in fixed format text
#14727
Reference in New Issue
Block a user
Originally created by @levicki on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7383
Bug Report
Installation Method
Environment
Open WebUI Version: v0.4.5
Ollama (if applicable): v0.4.5
Operating System: Windows 11 23H2 Version 10.0.22631.4541
Browser (if applicable): Brave Browser 1.73.91 Chromium: 131.0.6778.85 (Official Build) (64-bit)
Confirmation:
Expected Behavior:
When writing a question for the model I expect that markdown is supported (specifically ``` to denote fixed formatting of the following text block). Rationale for this expectation is that it works on ChatGPT to which this UI seems to be almost identical to.
Actual Behavior:
Upon entering the closing ``` the text is reformatted and newlines are lost.
Description
Bug Summary:
Closing the ``` markdown tag in text input box leads to text being reformatted with the loss of newline characters.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
Before entering the closing ```:

After entering the closing ```:

Additional Information
N/A
@tjbck commented on GitHub (Nov 26, 2024):
#6973