Escape capturing prices with dollar sign as math expressions (#1985)

This commit is contained in:
Chenhe Gu
2024-01-10 19:55:50 +08:00
committed by GitHub
parent 7c0676343f
commit 0025ba4921

View File

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