mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 Improve Convert network images to local images for links starting with file// Fix https://github.com/siyuan-note/siyuan/issues/8567
This commit is contained in:
parent
7d3af3a0e3
commit
78ff4a0963
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ func NetImg2LocalAssets(rootID, originalURL string) (err error) {
|
|||
// `网络图片转换为本地图片` 支持处理 `file://` 本地路径图片 https://github.com/siyuan-note/siyuan/issues/6546
|
||||
|
||||
u := string(dest)[7:]
|
||||
if !gulu.File.IsExist(u) {
|
||||
if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {
|
||||
return ast.WalkSkipChildren
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue