diff --git a/web/src/pages/chat/markdown-content/index.tsx b/web/src/pages/chat/markdown-content/index.tsx index 0a83fb97d..d1c6c6af6 100644 --- a/web/src/pages/chat/markdown-content/index.tsx +++ b/web/src/pages/chat/markdown-content/index.tsx @@ -201,11 +201,16 @@ const MarkdownContent = ({ const { children, className, node, ...rest } = props; const match = /language-(\w+)/.exec(className || ''); return match ? ( - + {String(children).replace(/\n$/, '')} ) : ( - + {children} );