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: fix https://github.com/siyuan-note/siyuan/issues/8037
Vanessa71110aeead73
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 82c57a8cfb..4e28e7b348 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -488,8 +488,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;tempElement.innerHTML = value.replace(/<mark>/g, "").replace(/<\/mark>/g, "");tempElement = tempElement.firstElementChild as HTMLDivElement;if (refIsS) {- tempElement.setAttribute("data-subtype", "s");- tempElement.innerText = range.toString().replace(this.splitChar, "");+ const staticText = range.toString().replace(this.splitChar, "")+ if (staticText) {+ tempElement.setAttribute("data-subtype", "s");+ tempElement.innerText = staticText;+ }}protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {type: "id",