feat: Add KaTeX copy-tex and mhchem support

This commit is contained in:
PilgrimLyieu 2025-03-02 16:34:53 +08:00 committed by 亢奋猫
parent fdf4821d56
commit 55a9be2fa5

View File

@ -1,4 +1,5 @@
import 'katex/dist/katex.min.css'
import 'katex/dist/contrib/copy-tex'
import { useSettings } from '@renderer/hooks/useSettings'
import { Message } from '@renderer/types'
@ -14,6 +15,8 @@ import rehypeRaw from 'rehype-raw'
import remarkGfm from 'remark-gfm'
import remarkMath from 'remark-math'
import 'katex/dist/contrib/mhchem'
import CodeBlock from './CodeBlock'
import ImagePreview from './ImagePreview'
import Link from './Link'