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