fix: disable math formula conversion in Markdown.
- Disabled math formula conversion in Markdown rendering.
This commit is contained in:
parent
2855575b36
commit
a3f5223b4c
@ -1,7 +1,6 @@
|
||||
import 'katex/dist/katex.min.css'
|
||||
|
||||
import { Message } from '@renderer/types'
|
||||
import { convertMathFormula } from '@renderer/utils'
|
||||
import { isEmpty } from 'lodash'
|
||||
import { FC, useMemo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
@ -24,7 +23,7 @@ const Markdown: FC<Props> = ({ message }) => {
|
||||
const empty = isEmpty(message.content)
|
||||
const paused = message.status === 'paused'
|
||||
const content = empty && paused ? t('message.chat.completion.paused') : message.content
|
||||
return convertMathFormula(content)
|
||||
return content
|
||||
}, [message.content, message.status, t])
|
||||
|
||||
return useMemo(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user