Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: Make markdown support line breaks #2315 (#2343)

balibabu7edb4ad7dcad
diff --git a/web/src/components/highlight-markdown/index.less b/web/src/components/highlight-markdown/index.less
index 4f5535eb42..c0798c0642 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;
}