Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14325

Vanessae472f71ebd4c
diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts
index 32c1b205de..5d4e0a33c6 100644
--- a/app/src/util/newFile.ts
+++ b/app/src/util/newFile.ts
@@ -248,7 +248,7 @@ export const newFileBySelect = (protyle: IProtyle, selectText: string, nodeEleme
path: hPath,
notebook: targetNotebookId
}, (idResponse) => {
- const refText = escapeHtml(newFileName.substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen));
+ const refText = newFileName.substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen);
if (idResponse.data && idResponse.data.length > 0) {
protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
type: "id",