Pārlūkot izejas kodu

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

Chenhe Gu 1 gadu atpakaļ
vecāks
revīzija
0025ba4921
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 (
   return (
     <div className={cn(props.className, 'markdown-body')}>
     <div className={cn(props.className, 'markdown-body')}>
       <ReactMarkdown
       <ReactMarkdown
-        remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks]}
+        remarkPlugins={[[RemarkMath, { singleDollarTextMath: false }], RemarkGfm, RemarkBreaks]}
         rehypePlugins={[
         rehypePlugins={[
           RehypeKatex,
           RehypeKatex,
         ]}
         ]}