Skip to content

Commit

Permalink
support wiki link with resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
addozhang committed Nov 7, 2023
1 parent 9394016 commit 912ee4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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.1"
"version": "0.3.2"
}
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.1",
"version": "0.3.2",
"description": "",
"author": "addozhang",
"main": "main.js",
Expand Down
3 changes: 2 additions & 1 deletion src/uploader/imageTagProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ImageUploader from "./imageUploader";
import {PublishSettings} from "../publish";

const MD_REGEX = /\!\[(.*)\]\((.*?\.(png|jpg|jpeg|gif|svg|excalidraw))\)/g;
const WIKI_REGEX = /\!\[\[(.*?\.(png|jpg|jpeg|gif|svg|excalidraw))\]\]/g;
const WIKI_REGEX = /\!\[\[(.*?\.(png|jpg|jpeg|gif|svg|excalidraw))(|.*)?\]\]/g;

interface Image {
name: string;
Expand Down Expand Up @@ -100,6 +100,7 @@ export default class ImageTagProcessor {
url: '',
})
}
console.log(images);
return images;
}

Expand Down

0 comments on commit 912ee4a

Please sign in to comment.