Skip to content

Misc. bug: Web UI displays raw html tags (e.g. <br>) instead of rendering them in markdown tables #17462

@TFWol

Description

@TFWol

Name and Version

version: 7139 (923ae3c)
built with clang version 19.1.5 for x86_64-pc-windows-msvc

Operating systems

Windows

Which llama.cpp modules do you know to be affected?

llama-server

Command line

Problem description & steps to reproduce

An easy way to reproduce:

  • Enable "Render user content as Markdown" and then paste this into the Web UI chat (without the triple backticks):
| **Item** | **Description** | **Notes** |
|----------|-----------------|-----------|
| Item 1   | Simple single line | - Point A<br>- Point B<br>- Point C |
| Item 2   | Multi‑line text using plain line breaks (supported by some renderers) | Line 1<br>Line 2<br>Line 3 |
| Item 3   | Embedded list with HTML tags | <ul><li>First</li><li>Second</li><li>Third</li></ul> |
| Item 4   | Mixed content (text + list) | Text before list:<br>- Alpha<br>- Beta<br>End of list. |

Expected Output:

Item Description Notes
Item 1 Simple single line - Point A
- Point B
- Point C
Item 2 Multi‑line text using plain line breaks (supported by some renderers) Line 1
Line 2
Line 3
Item 3 Embedded list with HTML tags
  • First
  • Second
  • Third
Item 4 Mixed content (text + list) Text before list:
- Alpha
- Beta
End of list.

What gets rendered:

Image

It's mostly a pain for generation when using GPT-OSS since it really loves using <br> in its tables.

First Bad Commit

No response

Relevant log output

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions