diff --git a/src/components/ChatBox/MarkDown.tsx b/src/components/ChatBox/MarkDown.tsx index fd5d6ce9f..c0ce71331 100644 --- a/src/components/ChatBox/MarkDown.tsx +++ b/src/components/ChatBox/MarkDown.tsx @@ -49,7 +49,7 @@ export const MarkDown = memo( }, [content, speed, enableTypewriter, onTyping]); return ( -
+
), - ol: ({ children }) => ( -
    - {children} -
- ), + // ol: ({ children }) => ( + //
    + // {children} + //
+ // ), li: ({ children }) => (
  • {children}
  • ), diff --git a/src/components/WorkFlow/MarkDown.tsx b/src/components/WorkFlow/MarkDown.tsx index 66056736e..cdeebba81 100644 --- a/src/components/WorkFlow/MarkDown.tsx +++ b/src/components/WorkFlow/MarkDown.tsx @@ -48,7 +48,7 @@ export const MarkDown = ({ return text.replace(/\\n/g, " \n "); // add two spaces before \n, so ReactMarkdown will recognize it as a line break }; return ( -
    +
    ), - ol: ({ children }) => ( -
      - {children} -
    - ), + // ol: ({ children }) => ( + //
      + // {children} + //
    + // ), li: ({ children }) => (
  • {children}
  • ), diff --git a/src/style/index.css b/src/style/index.css index 1be6367b5..8b1f5befc 100644 --- a/src/style/index.css +++ b/src/style/index.css @@ -416,4 +416,9 @@ code { .stack-login-btn, .stack-login-btn button { width: 100%; +} + +.markdown-container ol { + padding-left: 1rem; + font-size: 12px; /* text-sm */ } \ No newline at end of file