From fd86e67bd8d6efc6b65d4f104118ed42f060489a Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 18 Sep 2025 17:30:55 +0100 Subject: [PATCH] remove rehyperaw from reactmarkdown --- .../ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx b/packages/ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx index c0e3b2054..73b1cb02a 100644 --- a/packages/ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx +++ b/packages/ui/src/ui-component/markdown/MemoizedReactMarkdown.jsx @@ -6,7 +6,6 @@ import { CodeBlock } from '../markdown/CodeBlock' import remarkGfm from 'remark-gfm' import remarkMath from 'remark-math' import rehypeMathjax from 'rehype-mathjax' -import rehypeRaw from 'rehype-raw' /** * Checks if text likely contains LaTeX math notation @@ -91,7 +90,7 @@ export const MemoizedReactMarkdown = memo( const rehypePlugins = useMemo(() => { if (props.rehypePlugins) return props.rehypePlugins - return shouldEnableMath ? [rehypeMathjax, rehypeRaw] : [rehypeRaw] + return shouldEnableMath ? [rehypeMathjax] : [] }, [props.rehypePlugins, shouldEnableMath]) return (