From f4cc0af87a8645258e63d1434f59e4e2b9e82b7c Mon Sep 17 00:00:00 2001 From: therainisme Date: Thu, 29 Feb 2024 15:31:07 +0800 Subject: [PATCH] initial publish --- LICENSE.md | 21 +++++++++++++++++++++ assets/clear-markdown-unused-images.png | Bin 0 -> 9400 bytes package.json | 3 ++- src/extension.ts | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 LICENSE.md create mode 100644 assets/clear-markdown-unused-images.png diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..8b8ced4 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 ZainChen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/assets/clear-markdown-unused-images.png b/assets/clear-markdown-unused-images.png new file mode 100644 index 0000000000000000000000000000000000000000..8d197b9bb668e4d34ae6a7833feb3d8c68640845 GIT binary patch literal 9400 zcmV;pBuCqcP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vG`zyJU;zyT;^TH62sBuz;~K~#8N?VSgF zTh-bBpQ~kg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_{CLEH0d+9Q>%v3nkxL`H$ z&K8*0u4W^gZ?ec9%!?OUCu1SOe)icV%p`rKCDrG3`!)pSqQdW&0Jy;JM4Bft6_71S zG=+6?7W>(W?1#s*UmwrfFgFdG5yFmbtliASz|3R;!@5lnsFfWzvcEaZB%?|&)1js! yT@9^W8~p3Y#u;avamE>EoN>k(XPh4#ME?ip>!hY<_H_gR0000 { + let disposable = vscode.commands.registerCommand('clear-markdown-unused-images.run', async () => { // The code you place here will be executed every time your command is executed vscode.window.showInformationMessage('Searching for unused images in markdown files...');