From 7edb4ad7dcadb471d09f7c26fba95be557994602 Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 10 Sep 2024 12:15:02 +0800 Subject: [PATCH] fix: Make markdown support line breaks #2315 (#2343) ### What problem does this PR solve? fix: Make markdown support line breaks #2315 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/highlight-markdown/index.less | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/components/highlight-markdown/index.less b/web/src/components/highlight-markdown/index.less index 4f5535eb4..c0798c064 100644 --- a/web/src/components/highlight-markdown/index.less +++ b/web/src/components/highlight-markdown/index.less @@ -1,3 +1,4 @@ .text { + white-space: pre-wrap; // https://stackoverflow.com/questions/60332183/new-line-with-react-markdown .chunkText; }