mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
feat: Allow multi-line values in table cells #4372
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 @ciejer on GitHub (Mar 11, 2025).
Check Existing Issues
Problem Description
When rendering a markdown table, OpenWebUI does not render linebreaks such as
<br>and/nwithin a table cell.My users come from ChatGPT, which produces table markdown separated by
<br>and can render this in the interface without issue; and allows copying the formatted response out into other tools easily.The most common use case is bulleted lists within a table cell; ie a list of tasks with a "risks" column.
I don't mind what syntax we use to render newlines within a table; as we can instruct the model to use whatever syntax is supported; however
<br>seems to be most common in the absence of a markdown standard.The closest issue to this I can find is #1663.
See example below:

Desired Solution you'd like
Render
<br>or\nas linebreaks within a table cell, allowing multiline tables to be produced and copied out as rich text.Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (Mar 11, 2025):
HTML will not be rendered directly to prevent XSS.
@ciejer commented on GitHub (Mar 11, 2025):
Does that constraint include the \n option?
I'm happy to invest time in a PR.