[GH-ISSUE #11126] Output of markdown including a code block breaks upon experiencing closing ``` tag #31646

Closed
opened 2026-04-25 05:33:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @neilbags on GitHub (Mar 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11126

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: Latest? I installed it today. (where can I see this?)
  • Operating System: Ubuntu 24.04
  • Browser (if applicable): Firefox 135.0.1

Expected Behavior:

Prompt to generate some markdown. "Generate some example markdown with a code block in it". Output should be markdown source.

Actual Behavior:

The first section of the output is markdown source. Upon reaching the end of the code block (the second instance of ```) the output switches from markdown source to rendered markdown)

Steps to Reproduce:
Prompt Open-WebUI to: "Generate some example markdown with a code block in it"

Screenshots/Screen Recordings (if applicable):

Image

Originally created by @neilbags on GitHub (Mar 4, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11126 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** Latest? I installed it today. (where can I see this?) - **Operating System:** Ubuntu 24.04 - **Browser (if applicable):** Firefox 135.0.1 ## Expected Behavior: Prompt to generate some markdown. "Generate some example markdown with a code block in it". Output should be markdown source. ## Actual Behavior: The first section of the output is markdown source. Upon reaching the end of the code block (the second instance of ```) the output switches from markdown source to rendered markdown) **Steps to Reproduce:** Prompt Open-WebUI to: "Generate some example markdown with a code block in it" **Screenshots/Screen Recordings (if applicable):** ![Image](https://github.com/user-attachments/assets/bbf836b6-3590-4bd3-9e59-35f3d1ad5d20)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#31646