I’m working on a plugin that lets you upload images (paste/drop) to the internet and returns you the URL of the image. Something that I would like to do is to have an offline first experience:
- Save locally the image but use the markdown link with the image source.
- check if the file exists, if true then show the image; if false then download the image from the internet.
I’m having trouble in:
- Saving the attachment locally
- Have a hook for rendering an image with my logic for an image /![[]]
Any guidance would be very appreciated