Embed images with dataviewjs

You’ve got an array of files (a “list” of files, or a “set” of files), but you’re trying to output the whole set as a single image.

Do this:

```dataviewjs  
const jpgFiles = app.vault.getFiles().filter(file => file.extension === 'jpg' && file.path.includes('Media') && file.name.includes(dv.current().file.name))  

jpgFiles.forEach(file => dv.paragraph(`![[${file.path}]]`))
```
3 Likes