fix(webui): preserve single newlines in markdown rendering

Add remark-breaks plugin so that single newlines in assistant messages
(such as /help output) render as line breaks instead of being collapsed
into a single paragraph by standard markdown behavior.
This commit is contained in:
chengyongru
2026-05-18 15:12:27 +08:00
committed by Xubin Ren
parent ba38f90832
commit 28d0f8560e
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -30,6 +30,7 @@
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.6.1",
"rehype-katex": "^7.0.1",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"tailwind-merge": "^2.6.0"