Open DeutscheGabanna opened 1 year ago
Also closely related with this issue: #177
Ah Live Preview. Always a joy to work with lol.
dv.view
and embedding inside inline queries is not going to work very well - it renders inside an html span
element which the Obsidian embed renderer will refuse to render in.
dv.view
and embedding inside inline queries is not going to work very well - it renders inside an html span element which the Obsidian embed renderer will refuse to render in.
How about I make a DJS codeblock for this instead of the inline version? Would that work?
It should work that way I think. Try and let us know?
You should have better luck with a regular codeblock.
No luck, unfortunately. Now the same code pulls completely wrong notes with frontmatter held: 2022-08-23
when I'm running the query from a note called 2022-09-02
This issue mashed two different things in one.
I came here while searching for opened issues about dv.view
now working in Live Preview (aka Editing) mode specifically.
Currently, full dataviewjs
code blocks work in either mode, and $=
inline queries only work in reading mode.
This inconsistency is really annoying.
I specifically trying to insert computed values inline, so full codeblock is not acceptable.
I rarely ever switch to reading mode and need everything working in live preview, so this makes dv.view
not available for me.
For my use case I don't care about full HTML in inline queries.
If you introduce a separate call like dv.iview()
that would expect a plain string returned from my js file - That will work perfectly fine for me.
What happened?
Loading![image](https://user-images.githubusercontent.com/59067099/186952297-f6ceec16-d8e1-4e28-adcd-60f542ccf33d.png)
meetings_list.js
code into an inline block.Doesn't work in live preview:![image](https://user-images.githubusercontent.com/59067099/186952311-03f5eb05-a438-4b74-b93d-c0278a710880.png)
Does not work like intended in reading mode (shows just title, no embed):![image](https://user-images.githubusercontent.com/59067099/186952758-a080baa6-e94d-4240-af4d-758f3529583c.png)
If you copy the![image](https://user-images.githubusercontent.com/59067099/186952608-898ae027-2b1e-4d3c-8a89-f61ce8f977a3.png)
meetings_list.js
code from an inlinedv.view
query into a codeblock directly, it works:DQL
No response
JS
Dataview Version
0.5.43
Obsidian Version
0.15.9
OS
Windows