mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 10:15: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 (
|
return (
|
||||||
<div className={cn(props.className, 'markdown-body')}>
|
<div className={cn(props.className, 'markdown-body')}>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks]}
|
remarkPlugins={[[RemarkMath, { singleDollarTextMath: false }], RemarkGfm, RemarkBreaks]}
|
||||||
rehypePlugins={[
|
rehypePlugins={[
|
||||||
RehypeKatex,
|
RehypeKatex,
|
||||||
]}
|
]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user