Folding in preview

it seems 0.81 bings more freedom to use HTML tags :

we can now use <details><summary> to create collapsible ‘outlines’ in preview mode.
but currently there are a few drawbacks :

  • [[links]] don’t work inside the tags
  • no transclusions either
  • can’t nest code blocks / quote blocks

@Silver @Licat : Do you think we could achieve the same result as HTML5 <details> in GitHub · GitHub inside Obsidian ?

I would love the same result in obsdiain as the example below :

A collapsible section with markdown

Click to expand!
def func():
    return 'hello, world!'

Nested

root
bin
nest1
a
b
c
nest2

a
b
c

file1
file2
file3
boot

x
y
z

dev

p
q
r

etc

e
t
c

home

me
you
everyone

lib

lib
er
ate

but currently we get this :

7 Likes