obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Embedding in dataview - differences between live-edit/reading mode

Open DeutscheGabanna opened this issue 3 years ago • 2 comments

What happened?

The code embeds the files properly only in live-edit mode, not in reading mode.

DQL

No response

JS

Java-Script

Version #1

let meetings = dv.pages("#meeting").where(c => c.held = dv.current().file.name)
meetings.forEach(p => dv.paragraph(dv.fileLink(p.file.name, true)))

Version #2

dv.pages("#meeting").where(c => c.held = dv.current().file.name).forEach(p => dv.paragraph(dv.fileLink(p.file.name, true)))

Code previews like this in the live-edit (correctly): image

But in the reading mode, it looks like this (incorrectly): image

Dataview Version

0.5.43

Obsidian Version

0.15.9

OS

Windows

DeutscheGabanna avatar Aug 26 '22 15:08 DeutscheGabanna

Closely related with this, actually: #177

DeutscheGabanna avatar Aug 26 '22 16:08 DeutscheGabanna

hey @DeutscheGabanna can you re-check please? the pr #2266 likely solved this after shipping as update to everyone.

GottZ avatar Mar 20 '24 20:03 GottZ