fix: markdown

This commit is contained in:
archer
2023-06-14 20:58:11 +08:00
parent 07f8e18c10
commit 7c159d8aba
4 changed files with 3 additions and 36 deletions

View File

@@ -3,7 +3,6 @@ import ReactMarkdown from 'react-markdown';
import { formatLinkText } from '@/utils/tools';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import remarkBreaks from 'remark-breaks';
import rehypeKatex from 'rehype-katex';
import 'katex/dist/katex.min.css';
@@ -30,7 +29,7 @@ const Markdown = ({
className={`markdown ${styles.markdown}
${isChatting ? (source === '' ? styles.waitingAnimation : styles.animation) : ''}
`}
remarkPlugins={[remarkGfm, remarkMath, remarkBreaks]}
remarkPlugins={[remarkGfm, remarkMath]}
rehypePlugins={[rehypeKatex]}
components={{
pre: 'div',