Vanessa 2025-03-10 11:34:16 +08:00
parent 9a5e80ad73
commit e472f71ebd

View file

@ -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",