Open pluveto opened 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.
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
With custom upload program
For example:
program output url.
and insert that url into document.