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: Improve HTML underline style clipping https://github.com/siyuan-note/siyuan/issues/14804 fix lint
Daniel5ccb95ae4eef
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex 90b137da32..74a0d74ad3 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -475,8 +475,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenconst tempDiv = document.createElement("div");tempDiv.innerHTML = textHTML;const walker = document.createTreeWalker(tempDiv, NodeFilter.SHOW_TEXT, null);- let node;- while (node = walker.nextNode()) {+ let node: Node | null = null;+ while ((node = walker.nextNode())) {if (node.nodeValue && (node.nodeValue.match(/\n/g) || []).length >= 2) {containsNewlines = true;break;