mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 双击打开图片不对 Fix https://github.com/siyuan-note/siyuan/issues/5876
This commit is contained in:
parent
1312c0a597
commit
9fc80a5edd
1 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ func DocImageAssets(rootID string) (ret []string, err error) {
|
||||||
if ast.NodeImage == n.Type {
|
if ast.NodeImage == n.Type {
|
||||||
linkDest := n.ChildByType(ast.NodeLinkDest)
|
linkDest := n.ChildByType(ast.NodeLinkDest)
|
||||||
dest := linkDest.Tokens
|
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))
|
ret = append(ret, gulu.Str.FromBytes(dest))
|
||||||
}
|
}
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue