Referencing local images works perfectly with markdown. I can then reference my images using a relative syntax (_media/image.png).
img-tags works fine as long as the src is an URL. I read that I can also reference local images using absolute paths with the img-tag, but I’ve not tested this myself.
What I’m trying to do
I’d like a portable way (works for both desktop and mobile) to display local images in html blocks (tables).
Is there a way to achieve this? If not, is it on the roadmap?
Would it be possible to write a plugin that “intercepts” image links in html and redirects to the absolute path of the image? I’d prefer not to alter the actual .md-files…
For Android I tried adding clean_link = clean_link.replace("file://localhost/", ""); for Android but that didn’t work. Not sure what part of the file path to remove on Android.
It isnt work on Ubuntu22, i place the master folder in workspace/.obsidian/plugins, and have confirmed the plugin shows in “Setting - Community Plugins - Installed Plugins”, is there anything wrong?
That’s working for me in reading mode but your example gif looks like it’s in live preview mode but that doesn’t seem to work for me.
Either way I really appreciate you and @CheapMeow both offering options to get it working in reading mode, that’s a huge improvement for when I need portability!