|
@@ -111,6 +111,10 @@ func NetImg2LocalAssets(rootID, originalURL string) (err error) {
|
|
// `网络图片转换为本地图片` 支持处理 `file://` 本地路径图片 https://github.com/siyuan-note/siyuan/issues/6546
|
|
// `网络图片转换为本地图片` 支持处理 `file://` 本地路径图片 https://github.com/siyuan-note/siyuan/issues/6546
|
|
|
|
|
|
u := string(dest)[7:]
|
|
u := string(dest)[7:]
|
|
|
|
+ unescaped, _ := url.PathUnescape(u)
|
|
|
|
+ if unescaped != u {
|
|
|
|
+ u = unescaped
|
|
|
|
+ }
|
|
if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {
|
|
if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {
|
|
return ast.WalkSkipChildren
|
|
return ast.WalkSkipChildren
|
|
}
|
|
}
|