This commit is contained in:
Archer
2023-10-17 10:00:32 +08:00
committed by GitHub
parent dd8f2744bf
commit 3b776b6639
98 changed files with 1525 additions and 983 deletions

View File

@@ -62,7 +62,9 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?:
[]
);
const formatSource = source.replace(/\\n/g, '\n ');
const formatSource = source
.replace(/\\n/g, '\n ')
.replace(/(http[s]?:\/\/[^\s。]+)([。,])/g, '$1 $2');
return (
<ReactMarkdown