Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17571

Vanessa2be8cf551d25
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 0562535bed..16cc598775 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -479,7 +479,7 @@ export class WYSIWYG {
if (item.nodeType === 3) {
textPlain += item.textContent;
} else if (item.nodeType === 1 &&
- (item.classList.contains("img") || item.getAttribute("data-type") === "inline-math")) {
+ (item.classList.contains("img") || item.getAttribute("data-type").includes("inline-math"))) {
textPlain += protyle.lute.BlockDOM2StdMd(item.outerHTML).trimEnd();
} else {
textPlain += item.textContent;