From 8f9df4ac3ff6b6cdaa67fdc290c7b006e7857842 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 21 Oct 2024 23:32:55 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12867 --- app/src/protyle/toolbar/Link.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/toolbar/Link.ts b/app/src/protyle/toolbar/Link.ts index 47b6019e8..003f6e8fd 100644 --- a/app/src/protyle/toolbar/Link.ts +++ b/app/src/protyle/toolbar/Link.ts @@ -45,6 +45,10 @@ export class Link extends ToolbarItem { } } } + // https://github.com/siyuan-note/siyuan/issues/12867 + if (!dataHref && clipText.startsWith("assets/")) { + dataHref = clipText; + } } catch (e) { console.log(e); }