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/18151
Vanessaf99626b94842
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 690b5a1ac6..e4c15efad9 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -196,9 +196,18 @@ ${unicode2Emoji(emoji.unicode)}</button>`;// https://github.com/siyuan-note/siyuan/issues/5083if (this.splitChar === "/" || this.splitChar === "、") {clearTimeout(this.timeId);- const blockElement = hasClosestBlock(protyle.toolbar.range.startContainer);- if (this.enableSlash && !isMobile() && blockElement && !isInEmbedBlock(blockElement)) {- this.genHTML(hintSlash(key, protyle), protyle, false, "hint");+ if (protyle.lite) {+ protyle.options.hint.extend.find((item) => {+ if (item.key === "/" && item.hint) {+ item.hint(key, protyle, "hint");+ return true;+ }+ });+ } else {+ const blockElement = hasClosestBlock(protyle.toolbar.range.startContainer);+ if (this.enableSlash && !isMobile() && blockElement && !isInEmbedBlock(blockElement)) {+ this.genHTML(hintSlash(key, protyle), protyle, false, "hint");+ }}return;}