An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/17571
Vanessa80e045f68593
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 421b86790a..82b0fce5ff 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -473,13 +473,16 @@ export class WYSIWYG {} else if (hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH")) {tempElement.innerHTML = tempElement.innerHTML.replace(/<br>/g, "\n").replace(/<br\/>/g, "\n");textPlain = tempElement.textContent.endsWith("\n") ? tempElement.textContent.replace(/\n$/, "") : tempElement.textContent;- } else if (tempElement.querySelector('.img, [data-type="inline-math"]')) {+ } else if (tempElement.querySelector('.img, [data-type~="inline-math"]')) {textPlain = "";tempElement.childNodes.forEach((item: Element) => {if (item.nodeType === 3) {textPlain += item.textContent;} else if (item.nodeType === 1 &&(item.classList.contains("img") || item.getAttribute("data-type").includes("inline-math"))) {+ if (!item.classList.contains("img")) {+ item.setAttribute("data-type", "inline-math");+ }textPlain += protyle.lute.BlockDOM2StdMd(item.outerHTML).trimEnd();} else {textPlain += item.textContent;