Skip to content

Commit 8e593f7

Browse files
committed
fix: disable support html tag in markdown
1 parent d72f878 commit 8e593f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/web/src/components/Markdown/render.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { isValidStr, parseUrlStr, useTranslation } from 'tailchat-shared';
44
import { Loadable } from '../Loadable';
55
import { Image } from 'tailchat-design';
66
import remarkGfm from 'remark-gfm';
7-
import rehypeRaw from 'rehype-raw';
7+
// import rehypeRaw from 'rehype-raw';
8+
// import rehypeSanitize from 'rehype-sanitize';
89
import './render.less';
910

1011
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -81,7 +82,7 @@ export const Markdown: React.FC<{
8182
transformImageUri={(src) => transformUrl(src)}
8283
transformLinkUri={(href) => transformUrl(href)}
8384
remarkPlugins={[remarkGfm]}
84-
rehypePlugins={[rehypeRaw]}
85+
// rehypePlugins={[rehypeRaw, rehypeSanitize]}
8586
linkTarget="_blank"
8687
skipHtml={true}
8788
components={components}

0 commit comments

Comments
 (0)