telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
134 stars 40 forks source link

Feature Request: Paste then upload #85

Open pluveto opened 2 years ago

pluveto commented 2 years ago

With custom upload program

For example:

upgit.exe ${filename}

program output url.

and insert that url into document.

vezaynk commented 2 years ago

What is the use-case for this? If you're deploying your markdown files as a site anywhere, relative links should be fine enough. If you want images to be hosted in a location other than the one where the site is hosted, you should make the image uploads part of the deployment process and re-write the URLs by regex.

pluveto commented 2 years ago

Most of the time, I just write a document simply. I hope I can paste the screenshot directly and get an available picture link instead of uploading it manually or using additional shortcut keys. Also, not all cases we have an additional replacement process. BTW, a simple regex replacement is not accuracy for example, when the picture link appears in the code fence. And when the file changes, the post-processing process needs to make more judgments