Skip to content

Commit

Permalink
fix: Dollar Sign Handling in Markdown (#13178)
Browse files Browse the repository at this point in the history
Co-authored-by: crazywoola <[email protected]>
  • Loading branch information
Riddhimaan-Senapati and crazywoola authored Feb 5, 2025
1 parent e9e34c1 commit 55ce361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/app/components/base/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 55ce361

Please sign in to comment.