Skip to content

Commit

Permalink
Remove markdown math
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaapple committed Nov 28, 2024
1 parent f26363b commit cd3250c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/components/search/my-markdown.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -42,9 +42,8 @@ const processNodeWithCitations = (nodeContent: string, sources: TextSource[]) =>
function MyMarkdown({ content, sources }: { content: string; sources: TextSource[] }) {
return (
<ReactMarkdown
remarkPlugins={[RemarkMath, remarkGfm]}
remarkPlugins={[remarkGfm]}
rehypePlugins={[
RehypeKatex,
[
rehypeHighlight as any,
{
Expand Down

0 comments on commit cd3250c

Please sign in to comment.