Skip to content

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

:art: `Copy block hyperlink (Markdown)` anchor text length follows editor setting `The maximum length of block ref dynamic anchor text` Fix https://github.com/siyuan-note/siyuan/issues/8144

Liang Dinge4ea1a782444
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index e9fbe1bea8..0b6b3a35e3 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -473,7 +473,7 @@ export const copySubMenu = (id: string, accelerator = true, focusElement?: Eleme
label: window.siyuan.languages.copyProtocolInMd,
click: () => {
fetchPost("/api/block/getRefText", {id}, (response) => {
- writeText(`[${response.data.substring(0, Constants.SIZE_LINK_TEXT_MAX)}](siyuan://blocks/${id})`);
+ writeText(`[${response.data}](siyuan://blocks/${id})`);
});
if (focusElement) {
focusBlock(focusElement);