mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #24746] issue: v0.9.5 assistant message Copy button collapses Markdown line breaks when pasted into Obsidian / text editors #91131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @george3430 on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24746
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.9.5
Ollama Version (if applicable)
ollama version is 0.20.7
Operating System
Ubuntu 22.04
Browser (if applicable)
FF, Brave, Safari
Confirmation
README.md.Expected Behavior
When on v0.9.2 and using the built-in assistant message Copy button should preserves Markdown structure correctly when pasting into an Obsidian Note or other markdown editor.
Expected behavior
The copied content should preserve Markdown line breaks and structure:
Actual Behavior
Summary
After upgrading Open WebUI from v0.9.2 to v0.9.5, the built-in assistant message Copy button no longer preserves Markdown structure correctly.
The response renders correctly on screen, but when using the Open WebUI message-level Copy button and pasting into Obsidian or Notepad++, headings, bullet points and tables are flattened into a single line.
Browser selection copy/paste works correctly, so the model output and rendered page appear to be correct. The issue seems isolated to the Open WebUI built-in assistant message copy-to-clipboard function.
Environment
Upgrade context
The same prompts and workflows preserved Markdown correctly on v0.9.2.
After upgrading to v0.9.5, the Open WebUI built-in message Copy button started flattening Markdown output.
Rolling back another Open WebUI VM from v0.9.5 to v0.9.2 restored the expected Markdown copy behaviour.
Reproduction steps
Expected behaviour
The copied content should preserve Markdown line breaks and structure:
Actual behaviour
The copied content is flattened into a single line, similar to:
Important observation
If I manually select the rendered response in the browser and use normal browser copy/paste, the Markdown structure is preserved much better.
The issue appears to be specific to the Open WebUI built-in assistant message Copy button.
Impact
This is a significant workflow issue for users who rely on Open WebUI to generate Markdown documents for tools such as Obsidian.
In my case, Open WebUI is used to generate technical reports, consultation notes, clinical-adjacent documentation and structured Markdown reports. The current copy behaviour breaks the document structure and makes the output difficult to use.
Suspected area
This may be related to the message copy-to-clipboard pipeline converting rendered HTML back into plain text or Markdown without preserving block-level newline boundaries.
It may also be related to recent Markdown rendering / copy behaviour changes in the v0.9.x series.
Requested fix
Please preserve Markdown line breaks and block structure when using the assistant message-level Copy button.
Ideally, the Copy button should copy the original assistant message Markdown text, not a flattened rendering of the displayed HTML.
Workaround
Using browser selection copy works better, but this is not practical for longer Markdown reports.
Wrapping the entire output in a fenced Markdown code block is also not reliable enough for normal documentation workflows.
Steps to Reproduce
Reproduction steps
Expected behaviour
The copied content should preserve Markdown line breaks and structure:
Actual behaviour
The copied content is flattened into a single line, similar to:
Important observation
If I manually select the rendered response in the browser and use normal browser copy/paste, the Markdown structure is preserved much better.
The issue appears to be specific to the Open WebUI built-in assistant message Copy button.
Impact
This is a significant workflow issue for users who rely on Open WebUI to generate Markdown documents for tools such as Obsidian.
In my case, Open WebUI is used to generate technical reports, consultation notes, clinical-adjacent documentation and structured Markdown reports. The current copy behaviour breaks the document structure and makes the output difficult to use.
Suspected area
This may be related to the message copy-to-clipboard pipeline converting rendered HTML back into plain text or Markdown without preserving block-level newline boundaries.
It may also be related to recent Markdown rendering / copy behaviour changes in the v0.9.x series.
Requested fix
Please preserve Markdown line breaks and block structure when using the assistant message-level Copy button.
Ideally, the Copy button should copy the original assistant message Markdown text, not a flattened rendering of the displayed HTML.
Workaround
Using browser selection copy works better, but this is not practical for longer Markdown reports.
Wrapping the entire output in a fenced Markdown code block is also not reliable enough for normal documentation workflows.
Logs & Screenshots
N/A
Additional Information
No response
@owui-terminator[bot] commented on GitHub (May 15, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #24657 bug: Rendered HTML paste creates duplicated Markdown table blocks
This is the closest current issue around clipboard/paste behavior with rendered Markdown and tables. It reports that rendered HTML content becomes broken/duplicated when moved through the clipboard, which is likely in the same copy/paste pipeline as the flattened Markdown-copy problem.
by alexander9846 ·
bug🟣 #19083 issue: output always copied with formatting (chrome)
This older issue is about the chat copy behavior producing unwanted rich formatting when copied. It targets the same message-copy-to-clipboard path, so it is relevant as a prior clipboard-formatting bug even though the symptom differs.
by tomasloksa ·
bug,good first issue🟣 #12962 *issue:
copied when using the bottom "copy" of a message, when copying from a "code only" response** *This is directly about the message copy button copying the wrong Markdown content (extrafences) from code-only responses. It shows the same copy-button implementation has had Markdown-specific copy bugs before.by darkBuddha ·
bug💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.