diff --git a/manifest.json b/manifest.json index b47f594..8e5a293 100644 --- a/manifest.json +++ b/manifest.json @@ -6,5 +6,5 @@ "authorUrl": "https://atbug.com", "isDesktopOnly": true, "minAppVersion": "0.11.0", - "version": "0.3.5" + "version": "0.4.0" } diff --git a/package.json b/package.json index 2a53c20..eef641d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-image-upload-toolkit", - "version": "0.3.5", + "version": "0.4.0", "description": "", "author": "addozhang", "main": "main.js", diff --git a/src/uploader/imageTagProcessor.ts b/src/uploader/imageTagProcessor.ts index cec44dd..91900c8 100644 --- a/src/uploader/imageTagProcessor.ts +++ b/src/uploader/imageTagProcessor.ts @@ -94,8 +94,8 @@ export default class ImageTagProcessor { } const decodedPath = decodeURI(match[2]); images.push({ - name: match[1] || path.parse(decodedPath).name, - path: this.settings.attachmentLocation + '/' + decodedPath, + name: decodedPath, + path: decodedPath, source: match[0], url: '', })