llama.cpp/tools/server/webui/src/lib
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
..
components webui: add rehype plugin to restore HTML in Markdown table cells (#17477) 2025-11-25 08:01:02 +01:00
constants webui: add rehype plugin to restore HTML in Markdown table cells (#17477) 2025-11-25 08:01:02 +01:00
enums webui: recognize AsciiDoc files as valid text files (#16850) 2025-11-01 15:02:57 +01:00
hooks SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
markdown webui: add rehype plugin to restore HTML in Markdown table cells (#17477) 2025-11-25 08:01:02 +01:00
services webui: Add a "Continue" Action for Assistant Message (#16971) 2025-11-19 14:39:50 +01:00
stores webui: Add a "Continue" Action for Assistant Message (#16971) 2025-11-19 14:39:50 +01:00
types webui: Add a "Continue" Action for Assistant Message (#16971) 2025-11-19 14:39:50 +01:00
utils feat(webui): improve LaTeX rendering with currency detection (#16508) 2025-11-03 00:41:08 +01:00