VS Code extension that scans the current .md or .mdx file, uploads all local image references to PicGo Server, and replaces those references with the uploaded URLs.
Features
- Command Palette command:
PicGo: Upload Images in Current Markdown File - Editor and Explorer right-click menu entries for
.mdand.mdxfiles - Scans local image references in:
- Markdown image syntax
- Markdown reference definitions:
[logo]: ./logo.png - HTML image tags with
src - MDX image tags with
src - Obsidian-style embeds:
![[image.png]]
- Uploads through PicGo Server JSON API:
POST /uploadwith{ "list": ["path"] }
Configuration
Set picgoMarkdownUploader.serverUrl in VS Code settings.
Default:
{
"picgoMarkdownUploader.serverUrl": "http://127.0.0.1:36677"
}
PicGo Server must be enabled in the PicGo app before running the command.
Development
npm install
npm test
npm run compile
License
MIT