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

Headers are not foldable

Open charleshan opened this issue 4 years ago • 3 comments

What happened?

Headers should be folderable but it looks like headers that are created using dataviewjs are not.

DQL

dv.el("h1", "H1");
dv.el("h2", "H2 - This should be foldable but is not");

JS

No response

Dataview Version

0.4.20

Obsidian Version

0.12.19

OS

MacOS

charleshan avatar Nov 20 '21 06:11 charleshan

I'm not sure I can fix this (easily at least) - this is built in Obsidian functionality that is added to headers before Dataview gets around to rendering them. This issue is also why embeds and some other things don't currently work in Dataview, by the way.

This may be possible with some future Obsidian API improvements.

blacksmithgu avatar Nov 25 '21 04:11 blacksmithgu

@blacksmithgu don't suppose this is any closer to being possible? Even if only in preview mode?

cdloh avatar Feb 19 '23 09:02 cdloh

@blacksmithgu I'd also be keen to know what it would take to get this implemented (for similar functionality in the Tasks plugin) - what are your thoughts on using the <details> tag as a work-around?

st-- avatar Jan 24 '24 10:01 st--