Skip to content

Commit 55ce361

Browse files
fix: Dollar Sign Handling in Markdown (langgenius#13178)
Co-authored-by: crazywoola <[email protected]>
1 parent e9e34c1 commit 55ce361

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/app/components/base/markdown.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ export function Markdown(props: { content: string; className?: string }) {
229229
return (
230230
<div className={cn(props.className, 'markdown-body')}>
231231
<ReactMarkdown
232-
remarkPlugins={[RemarkGfm, RemarkMath, RemarkBreaks]}
232+
remarkPlugins={[
233+
RemarkGfm,
234+
[RemarkMath, { singleDollarTextMath: false }],
235+
RemarkBreaks,
236+
]}
233237
rehypePlugins={[
234238
RehypeKatex,
235239
RehypeRaw as any,

0 commit comments

Comments
 (0)