Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataviewjs does not render awaited views in reading mode when the block is indented #2541

Open
carbolymer opened this issue Mar 12, 2025 · 0 comments
Labels
bug Something isn't working.

Comments

@carbolymer
Copy link

carbolymer commented Mar 12, 2025

What happened?

Context

I want to print additional details inside a bullet in the list. I want it to be at the same indent level as the bullet.

Reproduction steps

Create the following note with dataview:

- whatever
  ```dataviewjs
  await dv.view('views/someview', {})
  dv.span('foo')
  ```
  - [x] [tag::x] asd

the view does not have to have anything inside of it, just needs to be present

Expected result

foo gets printed in the reading and edit mode

Actual result

Nothing get printed out of dataviewjs block in reading mode. If the view contains anything, it's not printed as well. foo and the view are visible in edit mode.

If I don't indent the dataviewjs block, the nested list is ignored and treated as the same level as "whatever" element.

DQL

No response

JS

Dataview Version

0.5.67

Obsidian Version

1.8.9

OS

Linux

@carbolymer carbolymer added the bug Something isn't working. label Mar 12, 2025
@carbolymer carbolymer changed the title dataviewjs does not render awaited views in reading mode when indented dataviewjs does not render awaited views in reading mode when the block is indented Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant