From d393099d52315d98fa88365858194c564731e233 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Wed, 9 Jul 2025 18:45:08 -0400 Subject: [PATCH] chore: Remove math plugins from `MarkdownLite` --- client/src/components/Chat/Messages/Content/MarkdownLite.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/components/Chat/Messages/Content/MarkdownLite.tsx b/client/src/components/Chat/Messages/Content/MarkdownLite.tsx index 019783607c..d8d27068fb 100644 --- a/client/src/components/Chat/Messages/Content/MarkdownLite.tsx +++ b/client/src/components/Chat/Messages/Content/MarkdownLite.tsx @@ -1,7 +1,5 @@ import { memo } from 'react'; import remarkGfm from 'remark-gfm'; -import remarkMath from 'remark-math'; -import rehypeKatex from 'rehype-katex'; import supersub from 'remark-supersub'; import ReactMarkdown from 'react-markdown'; import rehypeHighlight from 'rehype-highlight'; @@ -13,7 +11,6 @@ import { langSubset } from '~/utils'; const MarkdownLite = memo( ({ content = '', codeExecution = true }: { content?: string; codeExecution?: boolean }) => { const rehypePlugins: PluggableList = [ - [rehypeKatex], [ rehypeHighlight, { @@ -32,7 +29,6 @@ const MarkdownLite = memo( /** @ts-ignore */ supersub, remarkGfm, - [remarkMath, { singleDollarTextMath: false }], ]} /** @ts-ignore */ rehypePlugins={rehypePlugins}