An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix inline tag compatibility with ES2020 https://github.com/siyuan-note/siyuan/issues/18242
Daniel1f9b6fcc154f
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.tsindex 5ab26925f7..e74d7798ef 100644--- a/app/src/protyle/util/insertHTML.ts+++ b/app/src/protyle/util/insertHTML.ts@@ -476,7 +476,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,blockElement.querySelector("wbr")?.remove();// 移除行级元素边界插入时产生的空拆分元素,避免相邻标签修复在新标签后插入空格splitElements.forEach((item) => {- if (item.childElementCount === 0 && item.textContent.replaceAll(Constants.ZWSP, "") === "") {+ if (item.childElementCount === 0 && item.textContent.split(Constants.ZWSP).join("") === "") {item.remove();}});