File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Markdown/SyntaxMarkdown Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import 'katex/dist/contrib/mhchem' ;
4
3
import { memo , useMemo } from 'react' ;
5
- import ReactMarkdown from 'react-markdown' ;
4
+ import { MarkdownHooks } from 'react-markdown' ;
6
5
7
6
import { PreviewGroup } from '@/Image' ;
8
7
import { useMarkdown , useMarkdownContent } from '@/hooks/useMarkdown' ;
@@ -29,14 +28,14 @@ const MarkdownRenderer = memo(
29
28
} ) => {
30
29
return (
31
30
< PreviewGroup enable = { enableImageGallery } >
32
- < ReactMarkdown
31
+ < MarkdownHooks
33
32
{ ...reactMarkdownProps }
34
33
components = { memoComponents }
35
34
rehypePlugins = { rehypePluginsList }
36
35
remarkPlugins = { remarkPluginsList }
37
36
>
38
37
{ escapedContent || '' }
39
- </ ReactMarkdown >
38
+ </ MarkdownHooks >
40
39
</ PreviewGroup >
41
40
) ;
42
41
} ,
You can’t perform that action at this time.
0 commit comments