HTML tag <img> to show local image sources is broken as of 1.8.3

Things I have tried

After updating to the latest version, all of my images no longer work. I like to use the html tag so that I can style each image separately and give them borders or different alignments ect, now 100s of my images are now broken and will not load.

I have opened up the obsidian console and the only indication of a problem is “Not allowed to load local resource:” with the path I used for the image in question.

What I’m trying to do

Simply use a local image in my local vault, like this:

Try adding file:/// in before the absolute path.

<img src="file:///D:\Path\To\Vaults\Images\image.png" style="background: #000000; padding: 1px">

This ended up working, changing it to that and then closing and reopening the note fixed it! Changing all instances of that is quite a simple fix in notepad++ :slight_smile:
Though I still don’t understand why this is necessary now.

From Obsidian v1.8+

<img>, <video>, <audio> and <source>tags with relative src paths are now rendered in Live Preview and Reading mode

I’m guessing this is involved, and the img src without the file:/// working before was a fluke. Just a guess, though.