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/9216
Vanessaad53100fd17f
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 7d72dc9976..28718d05a9 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -551,7 +551,7 @@ ${genHintItemHTML(item)}emoji = unicode2Emoji(value) + " ";}insertHTML(protyle.lute.SpinBlockDOM(emoji), protyle);- } else if (["「「", "{{"].includes(this.splitChar) || this.splitChar === "#" || this.splitChar === ":") {+ } else if (["「「", "「『", "『「", "『『", "{{"].includes(this.splitChar) || this.splitChar === "#" || this.splitChar === ":") {if (value === "") {const editElement = getContenteditableElement(nodeElement);if (editElement.textContent === "") {diff --git a/app/src/protyle/util/Options.ts b/app/src/protyle/util/Options.tsindex 961da30baa..ea2446aa6b 100644--- a/app/src/protyle/util/Options.ts+++ b/app/src/protyle/util/Options.ts@@ -53,6 +53,15 @@ export class Options {}, {key: "「「",hint: hintEmbed,+ }, {+ key: "「『",+ hint: hintEmbed,+ }, {+ key: "『「",+ hint: hintEmbed,+ }, {+ key: "『『",+ hint: hintEmbed,}, {key: "#", // 需在 / 之前,否则 #abc/ 会显示菜单hint: hintTag,diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex c96ce60104..b2be5d4459 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1510,7 +1510,7 @@ export class WYSIWYG {event.stopPropagation();return;}- if ([":", "(", "【", "(", "[", "{", "「", "#", "/", "、"].includes(event.data)) {+ if ([":", "(", "【", "(", "[", "{", "「", "『", "#", "/", "、"].includes(event.data)) {protyle.hint.enableExtend = true;}if (event.isComposing || isComposition ||@@ -1520,7 +1520,7 @@ export class WYSIWYG {return;}this.escapeInline(protyle, range, event);- if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“")) {+ if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“" || event.data === "「")) {clearTimeout(timeout); // https://github.com/siyuan-note/siyuan/issues/9179timeout = window.setTimeout(() => {input(protyle, blockElement, range, true); // 搜狗拼音数字后面句号变为点;Mac 反向双引号无法输入