llama.cpp/tools/server/webui/src
Pascal b1846f1c8e
webui: add rehype plugin to restore HTML in Markdown table cells (#17477)
* webui: add rehype plugin to restore HTML in Markdown table cells

The remark/rehype pipeline neutralizes inline HTML as literal text
(remarkLiteralHtml) so that XML/HTML snippets in LLM responses display
as-is instead of being rendered. This causes <br> and <ul> markup in
table cells to show as plain text.

This plugin traverses the HAST post-conversion, parses whitelisted HTML
patterns (<br>, <ul><li>) from text nodes, and replaces them with actual
HAST element nodes. For lists, adjacent siblings must be combined first
as the AST fragmentation breaks pattern matching.

Strict validation rejects malformed markup, keeping it as raw text.

* chore: update webui build output
2025-11-25 08:01:02 +01:00
..
lib webui: add rehype plugin to restore HTML in Markdown table cells (#17477) 2025-11-25 08:01:02 +01:00
routes Improved file naming & structure for UI components (#17405) 2025-11-20 14:07:31 +01:00
stories Improved file naming & structure for UI components (#17405) 2025-11-20 14:07:31 +01:00
styles feat(webui): improve LaTeX rendering with currency detection (#16508) 2025-11-03 00:41:08 +01:00
app.css Improve code block color theming (#16325) 2025-10-01 15:54:42 +02:00
app.d.ts Handle legacy 'context' attachments (#16687) 2025-10-20 19:49:02 +02:00
app.html SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
demo.spec.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00