🎨 Improve remote assets convert to local assets https://github.com/siyuan-note/siyuan/issues/13715

This commit is contained in:
Daniel 2025-01-05 09:34:57 +08:00
parent 5ae2db8bb9
commit 13faf167d6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 10 deletions

View file

@ -176,10 +176,6 @@ func GetNodeSrcTokens(n *ast.Node) (ret string) {
src := n.Tokens[index+len("src=\""):]
if index = bytes.Index(src, []byte("\"")); 0 < index {
src = src[:bytes.Index(src, []byte("\""))]
if !util.IsAssetLinkDest(src) {
return
}
ret = strings.TrimSpace(string(src))
return
}