Manjaro's screenshot tool has an option to publish the image on Imgur and when it's uploaded they display the url. You could do something similar and just autofill the necessary markdown after the image is uploaded? Not sure how imgur's API works though