diff --git a/web/package.json b/web/package.json index c113c3d493..13f646a6fe 100644 --- a/web/package.json +++ b/web/package.json @@ -41,7 +41,6 @@ "rehype-highlight": "^7.0.1", "rehype-highlight-code-lines": "^1.0.4", "rehype-katex": "^7.0.1", - "rehype-raw": "^7.0.0", "remark-math": "^6.0.0", "sass": "^1.69.4", "slate": "latest", diff --git a/web/screens/Thread/ThreadCenterPanel/TextMessage/MarkdownTextMessage.tsx b/web/screens/Thread/ThreadCenterPanel/TextMessage/MarkdownTextMessage.tsx index 6b416f1526..76e75f2a28 100644 --- a/web/screens/Thread/ThreadCenterPanel/TextMessage/MarkdownTextMessage.tsx +++ b/web/screens/Thread/ThreadCenterPanel/TextMessage/MarkdownTextMessage.tsx @@ -7,8 +7,9 @@ import Markdown from 'react-markdown' import rehypeHighlight from 'rehype-highlight' import rehypeHighlightCodeLines from 'rehype-highlight-code-lines' + import rehypeKatex from 'rehype-katex' -import rehypeRaw from 'rehype-raw' + import remarkMath from 'remark-math' import 'katex/dist/katex.min.css' @@ -198,12 +199,10 @@ export const MarkdownTextMessage = memo( remarkPlugins={[remarkMath]} rehypePlugins={[ [rehypeKatex, { throwOnError: false }], - rehypeRaw, rehypeHighlight, [rehypeHighlightCodeLines, { showLineNumbers: true }], wrapCodeBlocksWithoutVisit, ]} - skipHtml={true} > {text}