mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
829b7d40d4
@ -58,6 +58,9 @@ func DocImageAssets(rootID string) (ret []string, err error) {
|
||||
if ast.NodeImage == n.Type {
|
||||
linkDest := n.ChildByType(ast.NodeLinkDest)
|
||||
dest := linkDest.Tokens
|
||||
if 1 > len(dest) { // 双击打开图片不对 https://github.com/siyuan-note/siyuan/issues/5876
|
||||
return ast.WalkContinue
|
||||
}
|
||||
ret = append(ret, gulu.Str.FromBytes(dest))
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
Loading…
Reference in New Issue
Block a user