fix: dialog box cannot correctly display LaTeX formulas (#9242)

This commit is contained in:
Likename Haojie 2024-10-11 22:46:44 +08:00 committed by GitHub
parent 42b02b3a5f
commit ea584e94bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,7 +245,7 @@ export function Markdown(props: { content: string; className?: string }) {
return (
<div className={cn(props.className, 'markdown-body')}>
<ReactMarkdown
remarkPlugins={[[RemarkGfm, RemarkMath, { singleDollarTextMath: false }], RemarkBreaks]}
remarkPlugins={[RemarkGfm, RemarkMath, RemarkBreaks]}
rehypePlugins={[
RehypeKatex,
RehypeRaw as any,