Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: dialog box cannot correctly display LaTeX formulas (#9242)

Likename Haojieea584e94bd5f
diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsx
index 39a399cc9f7..dbe40878825 100644
--- a/web/app/components/base/markdown.tsx
+++ b/web/app/components/base/markdown.tsx
@@ -245,7 +245,7 @@ export function Markdown(props: { content: string; className?: string }) {
return (
<div className={cn(props.className, 'markdown-body')}>
<ReactMarkdown
- remarkPlugins={[[RemarkGfm, RemarkMath, { singleDollarTextMath: false }], RemarkBreaks]}
+ remarkPlugins={[RemarkGfm, RemarkMath, RemarkBreaks]}
rehypePlugins={[
RehypeKatex,
RehypeRaw as any,