mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 23:55:55 +08:00
Escape capturing prices with dollar sign as math expressions (#1985)
This commit is contained in:
parent
7c0676343f
commit
0025ba4921
@ -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,
|
||||
]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user