Skip to content

Commit

Permalink
Escape capturing prices with dollar sign as math expressions (langgen…
Browse files Browse the repository at this point in the history
  • Loading branch information
guchenhe authored Jan 10, 2024
1 parent 7c06763 commit 0025ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/base/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]}
Expand Down

0 comments on commit 0025ba4

Please sign in to comment.