mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 04:25:59 +08:00
fix: Dollar Sign Handling in Markdown (#13178)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
e9e34c1ab2
commit
55ce3618ce
@ -229,7 +229,11 @@ 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={[RemarkGfm, RemarkMath, RemarkBreaks]}
|
remarkPlugins={[
|
||||||
|
RemarkGfm,
|
||||||
|
[RemarkMath, { singleDollarTextMath: false }],
|
||||||
|
RemarkBreaks,
|
||||||
|
]}
|
||||||
rehypePlugins={[
|
rehypePlugins={[
|
||||||
RehypeKatex,
|
RehypeKatex,
|
||||||
RehypeRaw as any,
|
RehypeRaw as any,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user