Render image from frontmatter property

I’ve noticed it’s possible to put sth like that into a note content = this.url and frontmatter property will be displayed.

I was trying to do the same with images like that: ![image](= this.url). It didn’t work.

Is there a way to achieve that?

Note: I was trying to escape backticks in the examples but tilde char didn’t work.

1 Like

What does “sth” mean? I assume “something”? “char” is “characters”?

Please be clear when asking others for help.

if you have something like this in your frontmatter:

myimage: "[[myimagefile.jpg]]"

And you have the dataview plugin installed, you can do this:

`="!"+this.myimage`
5 Likes

In my case it was an external image, so I’ve done that:

image: https://someurl.com/image.jpg
`="![image|300]("+this.image+")"`
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.