mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 改进浏览器剪藏扩展处理带 title 的图片 Fix https://github.com/siyuan-note/siyuan/issues/7223
This commit is contained in:
parent
609401f3d7
commit
496caa2568
1 changed files with 4 additions and 1 deletions
|
|
@ -129,7 +129,10 @@ func extensionCopy(c *gin.Context) {
|
||||||
}
|
}
|
||||||
} else if ast.NodeImage == n.Type {
|
} else if ast.NodeImage == n.Type {
|
||||||
if dest := n.ChildByType(ast.NodeLinkDest); nil != dest {
|
if dest := n.ChildByType(ast.NodeLinkDest); nil != dest {
|
||||||
dest.Tokens = []byte(uploaded[string(dest.Tokens)])
|
assetPath := uploaded[string(dest.Tokens)]
|
||||||
|
if "" != assetPath {
|
||||||
|
dest.Tokens = []byte(assetPath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue