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 -LAN-
parent a6d387148a
commit 4e1dca9d52

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,