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/9480
Vanessa78dd63e9df70
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex 6107cabdc3..8d517ae31c 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -367,7 +367,7 @@ export const hintRef = (key: string, protyle: IProtyle, source: THintSource): IHif (response.data.newDoc) {const newFileName = Lute.UnEscapeHTMLStr(replaceFileName(response.data.k));dataList.push({- value: source === "search" ? `((newFile "${newFileName}"${Constants.ZWSP}'${newFileName}${Lute.Caret}'))` : `((newFile '${newFileName}${Lute.Caret}'))`,+ value: `((newFile "${newFileName}"${Constants.ZWSP}'${newFileName}${Lute.Caret}'))`,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile} <mark>${response.data.k}</mark></span></div>`,});diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 66b1efdca6..d47dfee250 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -517,7 +517,7 @@ ${genHintItemHTML(item)}}, response => {protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {type: "id",- color: `${response.data}${Constants.ZWSP}${(fileNames.length === 2 || refIsS) ? "s" : "d"}${Constants.ZWSP}${(fileNames.length === 2 ? fileNames[0] : realFileName).substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen)}`+ color: `${response.data}${Constants.ZWSP}${refIsS ? "s" : "d"}${Constants.ZWSP}${(refIsS ? fileNames[0] : realFileName).substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen)}`});});});