Browse Source

fix: Dollar Sign Handling in Markdown (#13178)

Co-authored-by: crazywoola <427733928@qq.com>
tags/0.15.3
Riddhimaan-Senapati 9 months ago
parent
commit
55ce3618ce
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      web/app/components/base/markdown.tsx

+ 5
- 1
web/app/components/base/markdown.tsx View File

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

Loading…
Cancel
Save