diff --git a/src/renderer/src/pages/home/Markdown/Markdown.tsx b/src/renderer/src/pages/home/Markdown/Markdown.tsx index d82905cf7f..8ee90a859a 100644 --- a/src/renderer/src/pages/home/Markdown/Markdown.tsx +++ b/src/renderer/src/pages/home/Markdown/Markdown.tsx @@ -24,6 +24,7 @@ import remarkMath from 'remark-math' import CodeBlock from './CodeBlock' import Link from './Link' +import Table from './Table' const ALLOWED_ELEMENTS = /<(style|p|div|span|b|i|strong|em|ul|ol|li|table|tr|td|th|thead|tbody|h[1-6]|blockquote|pre|code|br|hr|svg|path|circle|rect|line|polyline|polygon|text|g|defs|title|desc|tspan|sub|sup)/i @@ -83,6 +84,7 @@ const Markdown: FC = ({ block }) => { code: (props: any) => ( ), + table: (props: any) => , img: (props: any) => , pre: (props: any) =>
,
       p: (props) => {
@@ -91,7 +93,7 @@ const Markdown: FC = ({ block }) => {
         return 

} } as Partial - }, [onSaveCodeBlock]) + }, [onSaveCodeBlock, block.id]) if (messageContent.includes('