ソースを参照

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

Chenhe Gu 1 年間 前
コミット
0025ba4921
1 ファイル変更1 行追加1 行削除
  1. 1 1
      web/app/components/base/markdown.tsx

+ 1 - 1
web/app/components/base/markdown.tsx

@@ -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,
         ]}