Open Hernan-V opened 2 years ago
Hi, currently the only ways to use an image in event elements is to either 1) link to an image via HTTP/HTTPS or, 2) to use an absolute local path. This is typically from the root of the Obsidian vault.
If I have a vault that looks like this:
root
-> note1
-> note2
-> timeline
-> images/
---> image.jpg
and would like to reference image.jpg
in an event span/div in note2
, I would have to set my data-img
like so:
data-img="/images/image.jpg"
I tried and the only way is from the web. But from my local computer I tried so far:
data-img = '/Users/hernanvalenzuela/Downloads/IMG_8619.jpg'
data-img = 'file:///Users/hernanvalenzuela/Downloads/IMG_8619.jpg'
data-img = 'obsidian://open?vault=MyVault&file=IMG_8619.jpg'
None of them work's for my.