import React from 'react'; import ReactMarkdown from 'react-markdown'; import RemarkGfm from 'remark-gfm'; import RemarkMath from 'remark-math'; import RehypeKatex from 'rehype-katex'; import RemarkBreaks from 'remark-breaks'; import 'katex/dist/katex.min.css'; import styles from './index.module.scss'; import Link from './Link'; import CodeLight from './CodeLight'; import MermaidCodeBlock from './MermaidCodeBlock'; import MdImage from './Image'; function Code({ inline, className, children }: any) { const match = /language-(\w+)/.exec(className || ''); if (match?.[1] === 'mermaid') { return ; } return ( {children} ); } function Image({ src }: { src?: string }) { return ; } const Markdown = ({ source, isChatting = false }: { source: string; isChatting?: boolean }) => { return ( {source} ); }; export default Markdown;