소스 검색

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