Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9158

Vanessa070afd6ec041
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 5ab933e380..e37a0d22ae 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -159,7 +159,7 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
const currentLineValue = protyle.toolbar.range.startContainer.textContent.substring(0, start) || "";
const key = this.getKey(currentLineValue, protyle.options.hint.extend);
if (typeof key === "undefined" ||
- ( // 除 emoji 提示外,其余在 code 内移动不进行提示
+ ( // 除 emoji 提示外,其余在 code 内移动不进行提示 https://github.com/siyuan-note/siyuan/issues/9158
this.splitChar !== ":" && (
hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "NodeCodeBlock") ||
hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "code")