From cd3250c91c9daf69a58788d92048e93e9e635038 Mon Sep 17 00:00:00 2001 From: ahaapple Date: Thu, 28 Nov 2024 22:29:34 +0800 Subject: [PATCH] Remove markdown math --- frontend/components/search/my-markdown.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/components/search/my-markdown.tsx b/frontend/components/search/my-markdown.tsx index 746d0c3d..c824805a 100644 --- a/frontend/components/search/my-markdown.tsx +++ b/frontend/components/search/my-markdown.tsx @@ -1,11 +1,11 @@ import ReactMarkdown from 'react-markdown'; import rehypeHighlight from 'rehype-highlight'; -import RemarkMath from 'remark-math'; +// import RemarkMath from 'remark-math'; import remarkGfm from 'remark-gfm'; import React, { memo } from 'react'; -import RehypeKatex from 'rehype-katex'; +// import RehypeKatex from 'rehype-katex'; import '@/styles/highlight.css'; -import 'katex/dist/katex.min.css'; +// import 'katex/dist/katex.min.css'; import { TextSource } from '@/lib/types'; import { InlineCitation } from '@/components/search/inline-citation'; import MemoizedCodeBlock from '@/components/search/code-block'; @@ -42,9 +42,8 @@ const processNodeWithCitations = (nodeContent: string, sources: TextSource[]) => function MyMarkdown({ content, sources }: { content: string; sources: TextSource[] }) { return (