From eeccf01ec231ffa680822e83226f5df7d8be7a11 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sat, 4 Mar 2023 19:30:19 +0800 Subject: [PATCH] fix: paragraph whitespace pre-wrap fixes #3 --- src/components/Chat/ChatContent/Message/MessageContent.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Chat/ChatContent/Message/MessageContent.tsx b/src/components/Chat/ChatContent/Message/MessageContent.tsx index 93e76bb..d2cd654 100644 --- a/src/components/Chat/ChatContent/Message/MessageContent.tsx +++ b/src/components/Chat/ChatContent/Message/MessageContent.tsx @@ -159,6 +159,9 @@ const ContentView = ({ ); }, + p({ className, children, ...props }) { + return

{children}

; + }, }} > {content}