Skip to content

Commit

Permalink
fix image path with markdown syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
addozhang committed Jan 31, 2024
1 parent 41f3d0e commit f3d3a4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"authorUrl": "https://atbug.com",
"isDesktopOnly": true,
"minAppVersion": "0.11.0",
"version": "0.3.5"
"version": "0.4.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-image-upload-toolkit",
"version": "0.3.5",
"version": "0.4.0",
"description": "",
"author": "addozhang",
"main": "main.js",
Expand Down
4 changes: 2 additions & 2 deletions src/uploader/imageTagProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
})
Expand Down

0 comments on commit f3d3a4d

Please sign in to comment.