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: fix https://github.com/langgenius/dify/issues/27939 (#27985)

wangxiaolei422bb4d4bb22
diff --git a/web/app/styles/markdown.scss b/web/app/styles/markdown.scss
index 005685f0e88..a4c24787a7a 100644
--- a/web/app/styles/markdown.scss
+++ b/web/app/styles/markdown.scss
@@ -856,6 +856,18 @@
color: var(--color-prettylights-syntax-comment);
}
+.markdown-body .katex {
+ /* Allow long inline formulas to wrap instead of overflowing */
+ white-space: normal !important;
+ overflow-wrap: break-word; /* better cross-browser support */
+ word-break: break-word; /* non-standard fallback for older WebKit/Blink */
+}
+
+.markdown-body .katex-display {
+ /* Fallback for very long display equations */
+ overflow-x: auto;
+}
+
.markdown-body .pl-c1,
.markdown-body .pl-s .pl-v {
color: var(--color-prettylights-syntax-constant);