Darakah / obsidian-timelines

Create a timeline view of all notes with the specified combination of tags
MIT License
353 stars 34 forks source link

I don't get to insert an image #31

Open Hernan-V opened 2 years ago

Hernan-V commented 2 years ago

I tried and the only way is from the web. But from my local computer I tried so far:

None of them work's for my.

seanlowe commented 1 year 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"