]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
webui: fix syntax highlighting lost after streaming for non-common languages (#21206)
authorHamish M. Blair <redacted>
Wed, 8 Apr 2026 06:58:08 +0000 (23:58 -0700)
committerGitHub <redacted>
Wed, 8 Apr 2026 06:58:08 +0000 (08:58 +0200)
commit97508acb17ff933c67edb3a2f0997bc19a6abb98
treebfb3f66a14b4e6751a39b20b52529b0c28d8f2c5
parent5c4aae66e15990f87815c9eba1663f728067512b
webui: fix syntax highlighting lost after streaming for non-common languages (#21206)

* webui: fix syntax highlighting lost for non-common languages after streaming

rehype-highlight uses lowlight internally, which only bundles 37 "common"
languages. The streaming code path uses highlight.js directly (192 languages),
so languages like Haskell highlight correctly while streaming but lose all
color once the code block closes. Pass the full lowlight language set to
rehype-highlight so both paths support the same languages.

* webui: rebuild static files after rebase
tools/server/public/bundle.js
tools/server/public/index.html
tools/server/webui/src/lib/components/app/content/MarkdownContent.svelte