mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve remote assets convert to local assets https://github.com/siyuan-note/siyuan/issues/13715
This commit is contained in:
parent
5ae2db8bb9
commit
13faf167d6
2 changed files with 4 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue