[GH-ISSUE #24657] bug: Rendered HTML paste creates duplicated Markdown table blocks #91113

Open
opened 2026-05-15 16:23:21 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @alexander9846 on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24657

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

Other

Open WebUI Version

0.9.4

Ollama Version (if applicable)

No response

Operating System

Elest.io

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

Rendered HTML copied from a browser should paste into the standard chat input only once.

The pasted content should remain usable and readable. Open WebUI should either preserve the rendered text formatting where possible, paste it as plain text, or convert it to Markdown without duplicating sections.

Nested table-based email layouts should not cause repeated or recursive Markdown table output.

Actual Behavior

When rendered HTML email content is copied from a browser and pasted into the standard Open WebUI chat input, the pasted content is duplicated many times.

The content is transformed into repeated Markdown-style table structures. Sections such as the salutation, body text, CTA buttons and signature are repeated multiple times.

The issue occurs consistently across multiple browsers.

Steps to Reproduce

  1. Open any chat conversation in Open WebUI.
  2. Copy rendered HTML email/newsletter content from a browser tab. Do not copy raw HTML source.
  3. Paste the rendered content into the standard chat input.
  4. Send the prompt.
  5. Observe that the sent message contains duplicated blocks converted into repeated Markdown-style table structures.

Notes:

  • The duplication becomes visible after sending the prompt.
  • Reproduces consistently in Safari and Brave on macOS.
  • No browser extensions are active.
  • The issue appears specific to rendered, table-based HTML copied from the browser clipboard.
  • A small/simple raw HTML snippet does not reproduce the issue.

Logs & Screenshots

No server logs available at this moment.

No browser console errors have been captured yet.

Screenshots can be provided if needed. The visible result is that the chat input/message contains many repeated Markdown table rows and duplicated blocks.

Additional Information

This appears to be related to clipboard handling, rendered HTML parsing, or HTML-to-Markdown conversion in the standard chat input.

The issue seems especially likely to occur with rendered email/newsletter HTML because those layouts often use deeply nested tables.

A practical workaround is to paste the content inside a fenced code block or paste plain text only, but this is not ideal. Users often want to paste rendered email content directly into Open WebUI for review, rewriting, debugging, summarization or marketing-content analysis.

Originally created by @alexander9846 on GitHub (May 13, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/24657 ### 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 Other ### Open WebUI Version 0.9.4 ### Ollama Version (if applicable) _No response_ ### Operating System Elest.io ### 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 Rendered HTML copied from a browser should paste into the standard chat input only once. The pasted content should remain usable and readable. Open WebUI should either preserve the rendered text formatting where possible, paste it as plain text, or convert it to Markdown without duplicating sections. Nested table-based email layouts should not cause repeated or recursive Markdown table output. ### Actual Behavior When rendered HTML email content is copied from a browser and pasted into the standard Open WebUI chat input, the pasted content is duplicated many times. The content is transformed into repeated Markdown-style table structures. Sections such as the salutation, body text, CTA buttons and signature are repeated multiple times. The issue occurs consistently across multiple browsers. ### Steps to Reproduce 1. Open any chat conversation in Open WebUI. 2. Copy rendered HTML email/newsletter content from a browser tab. Do not copy raw HTML source. 3. Paste the rendered content into the standard chat input. 4. Send the prompt. 5. Observe that the sent message contains duplicated blocks converted into repeated Markdown-style table structures. Notes: * The duplication becomes visible after sending the prompt. * Reproduces consistently in Safari and Brave on macOS. * No browser extensions are active. * The issue appears specific to rendered, table-based HTML copied from the browser clipboard. * A small/simple raw HTML snippet does not reproduce the issue. ### Logs & Screenshots No server logs available at this moment. No browser console errors have been captured yet. Screenshots can be provided if needed. The visible result is that the chat input/message contains many repeated Markdown table rows and duplicated blocks. ### Additional Information This appears to be related to clipboard handling, rendered HTML parsing, or HTML-to-Markdown conversion in the standard chat input. The issue seems especially likely to occur with rendered email/newsletter HTML because those layouts often use deeply nested tables. A practical workaround is to paste the content inside a fenced code block or paste plain text only, but this is not ideal. Users often want to paste rendered email content directly into Open WebUI for review, rewriting, debugging, summarization or marketing-content analysis.
GiteaMirror added the bug label 2026-05-15 16:23:21 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (May 13, 2026):

⚠️ Missing Issue Title Prefix

@alexander9846, your issue title is missing a categorising prefix (e.g. bug:, feat:, docs:).

Please update the title to lead with one of:

  • bug: bug report or error
  • feat: feature request or enhancement
  • docs: documentation issue
  • question: usage question
  • help: support request

Example: bug: Login fails when the password contains special characters

<!-- gh-comment-id:4440692859 --> @owui-terminator[bot] commented on GitHub (May 13, 2026): # ⚠️ Missing Issue Title Prefix @alexander9846, your issue title is missing a categorising prefix (e.g. `bug:`, `feat:`, `docs:`). Please update the title to lead with one of: - **bug**: bug report or error - **feat**: feature request or enhancement - **docs**: documentation issue - **question**: usage question - **help**: support request Example: `bug: Login fails when the password contains special characters`
Author
Owner

@owui-terminator[bot] commented on GitHub (May 13, 2026):

⚠️ Invalid Issue Title

@alexander9846, your issue title is too short, too few words, or a generic placeholder — it doesn't tell maintainers what's actually being reported or requested.

Please update the title to be at least 10 characters and 2 words, and to describe the actual issue. Bare placeholders like bug, feat:, or issue make triage difficult and slow down everyone.

Example: bug: Login fails when password contains special characters

<!-- gh-comment-id:4440692939 --> @owui-terminator[bot] commented on GitHub (May 13, 2026): # ⚠️ Invalid Issue Title @alexander9846, your issue title is too short, too few words, or a generic placeholder — it doesn't tell maintainers what's actually being reported or requested. Please update the title to be **at least 10 characters and 2 words**, and to describe the actual issue. Bare placeholders like `bug`, `feat:`, or `issue` make triage difficult and slow down everyone. Example: `bug: Login fails when password contains special characters`
Author
Owner

@owui-terminator[bot] commented on GitHub (May 13, 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:

  1. 🟣 #6415 Input field unable to handle pasted text (converting to markdown?)
    This reports paste handling in the chat input altering pasted content unexpectedly, including markdown-like transformation. While the specific symptom is whitespace loss rather than table duplication, it is directly about the same input/clipboard processing path.
    by skerit

  2. 🟣 #9850 UI breaks when pasting formatted text from LinkedIn or other sources
    This issue is about pasting formatted text from external sources into the chat input causing the UI to break. It is closely related because both involve rich/formatted clipboard content pasted into the input field from outside Open WebUI.
    by svmed2050

  3. 🟣 #15497 Paste the table text in the dialog box, and click to confirm that the page will be displayed as a code
    This is a table-pasting bug where pasted table text is converted incorrectly, indicating a related table/Markdown conversion path in the editor. The new issue is also triggered by table-like content being pasted into the input.
    by flyfox666 · bug

  4. 🟣 #15599 issue: Markdown Table Alignment Conversion Bug
    This concerns markdown table conversion/rendering bugs. Since the new issue produces repeated Markdown table blocks from pasted HTML tables, it is likely related to the same table conversion logic.
    by wongsatornt2529 · bug

  5. 🟣 #23092 feat: Enable proper table copying to Excel/Google Sheets
    Although a feature request, it deals with clipboard handling of tables and how content is copied/pasted between Open WebUI and other apps. It is relevant as a nearby clipboard/table-structure issue, but less directly than the bug reports above.
    by kai-huracan-tech


💡 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.

<!-- gh-comment-id:4440710225 --> @owui-terminator[bot] commented on GitHub (May 13, 2026): <!-- terminator-bot:related-issues-reply --> 🔍 **Related Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. 🟣 [#6415](https://github.com/open-webui/open-webui/issues/6415) **Input field unable to handle pasted text (converting to markdown?)** *This reports paste handling in the chat input altering pasted content unexpectedly, including markdown-like transformation. While the specific symptom is whitespace loss rather than table duplication, it is directly about the same input/clipboard processing path.* *by skerit* 2. 🟣 [#9850](https://github.com/open-webui/open-webui/issues/9850) **UI breaks when pasting formatted text from LinkedIn or other sources** *This issue is about pasting formatted text from external sources into the chat input causing the UI to break. It is closely related because both involve rich/formatted clipboard content pasted into the input field from outside Open WebUI.* *by svmed2050* 3. 🟣 [#15497](https://github.com/open-webui/open-webui/issues/15497) **Paste the table text in the dialog box, and click to confirm that the page will be displayed as a code** *This is a table-pasting bug where pasted table text is converted incorrectly, indicating a related table/Markdown conversion path in the editor. The new issue is also triggered by table-like content being pasted into the input.* *by flyfox666 · `bug`* 4. 🟣 [#15599](https://github.com/open-webui/open-webui/issues/15599) **issue: Markdown Table Alignment Conversion Bug** *This concerns markdown table conversion/rendering bugs. Since the new issue produces repeated Markdown table blocks from pasted HTML tables, it is likely related to the same table conversion logic.* *by wongsatornt2529 · `bug`* 5. 🟣 [#23092](https://github.com/open-webui/open-webui/issues/23092) **feat: Enable proper table copying to Excel/Google Sheets** *Although a feature request, it deals with clipboard handling of tables and how content is copied/pasted between Open WebUI and other apps. It is relevant as a nearby clipboard/table-structure issue, but less directly than the bug reports above.* *by kai-huracan-tech* --- 💡 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.
Author
Owner

@alexander9846 commented on GitHub (May 13, 2026):

I reviewed the suggested related issues, but this issue appears to be different.

This issue specifically concerns rendered HTML copied from a browser clipboard being pasted into the standard chat input, after which the sent message becomes recursively duplicated and converted into repeated Markdown-style table structures.

The issue does not reproduce with simple/raw HTML snippets and seems specifically related to rendered, table-based email/newsletter HTML content.

<!-- gh-comment-id:4440740492 --> @alexander9846 commented on GitHub (May 13, 2026): I reviewed the suggested related issues, but this issue appears to be different. This issue specifically concerns rendered HTML copied from a browser clipboard being pasted into the standard chat input, after which the sent message becomes recursively duplicated and converted into repeated Markdown-style table structures. The issue does not reproduce with simple/raw HTML snippets and seems specifically related to rendered, table-based email/newsletter HTML content.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#91113