Skip to content

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

Restore visible Markdown list styling in chat (#19010)

georgelichenc9db6d3abb68
diff --git a/web/src/components/markdown-content/index.module.less b/web/src/components/markdown-content/index.module.less
index 606c31f11f..67e9aafdec 100644
--- a/web/src/components/markdown-content/index.module.less
+++ b/web/src/components/markdown-content/index.module.less
@@ -53,6 +53,23 @@
padding-inline-start: 10px;
border-inline-start: 4px solid #ccc;
}
+ :global(ul),
+ :global(ol) {
+ margin: 0.5em 0;
+ padding-inline-start: 1.5em;
+ }
+ :global(ul) {
+ list-style-type: disc;
+ }
+ :global(ol) {
+ list-style-type: decimal;
+ }
+ :global(li) {
+ margin: 0.25em 0;
+ }
+ :global(li > p) {
+ margin: 0.15em 0;
+ }
// RTL Support
&[dir='rtl'] {
diff --git a/web/src/components/next-markdown-content/index.module.less b/web/src/components/next-markdown-content/index.module.less
index 13b663d301..c07dc800e5 100644
--- a/web/src/components/next-markdown-content/index.module.less
+++ b/web/src/components/next-markdown-content/index.module.less
@@ -54,6 +54,23 @@
padding-inline-start: 10px;
border-inline-start: 4px solid #ccc;
}
+ :global(ul),
+ :global(ol) {
+ margin: 0.5em 0;
+ padding-inline-start: 1.5em;
+ }
+ :global(ul) {
+ list-style-type: disc;
+ }
+ :global(ol) {
+ list-style-type: decimal;
+ }
+ :global(li) {
+ margin: 0.25em 0;
+ }
+ :global(li > p) {
+ margin: 0.15em 0;
+ }
// RTL Support
&[dir='rtl'] {