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/14162
Vanessabb8d5215ea52
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.tsindex 72b1aa0abe..ad013c53f5 100644--- a/app/src/protyle/util/insertHTML.ts+++ b/app/src/protyle/util/insertHTML.ts@@ -288,10 +288,10 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,}const range = useProtyleRange ? protyle.toolbar.range : getEditorRange(protyle.wysiwyg.element);fixTableRange(range);- let tableInlineHTML;+ let unSpinHTML;if (hasClosestByAttribute(range.startContainer, "data-type", "NodeTable") && !isBlock) {if (hasClosestByTag(range.startContainer, "TABLE")) {- tableInlineHTML = protyle.lute.BlockDOM2InlineBlockDOM(html);+ unSpinHTML = protyle.lute.BlockDOM2InlineBlockDOM(html);} else {// https://github.com/siyuan-note/siyuan/issues/9411isBlock = true;@@ -381,7 +381,12 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,}const tempElement = document.createElement("template");- let innerHTML = tableInlineHTML || // 在 table 中插入需要使用转换好的行内元素 https://github.com/siyuan-note/siyuan/issues/9358+ // https://github.com/siyuan-note/siyuan/issues/14162+ if (html.startsWith(">") && editableElement.textContent.replace(Constants.ZWSP, "") !== "" ) {+ unSpinHTML = html;+ }++ let innerHTML = unSpinHTML || // 在 table 中插入需要使用转换好的行内元素 https://github.com/siyuan-note/siyuan/issues/9358protyle.lute.SpinBlockDOM(html) || // 需要再 spin 一次 https://github.com/siyuan-note/siyuan/issues/7118html; // 空格会被 Spin 不再,需要使用原文// 粘贴纯文本时会进行内部转义,这里需要进行反转义 https://github.com/siyuan-note/siyuan/issues/10620