PlayGround
<foldablelist collapse_after=3&collapse_level=2>
item 1
item 2
item 3
item 3.1
item 3.2
item 3.3
item 3.4 –> gets hidden because collapse_after is greater than 3
item 3.5 –> gets hidden because collapse_after is greater than 3
item 3.5.1 –> gets hidden because collapse_level is deeper than 2
item 3.5.2 –> gets hidden because collapse_level is deeper than 2
item 3.5.3 –> gets hidden because collapse_level is deeper than 2
item 3.5.4 –> gets hidden because collapse_level is deeper than 2
item 4 –> gets hidden because collapse_after is greater than 3
item 5 –> gets hidden because collapse_after is greater than 3
</foldablelist>