It's been a few months, but I was wondering the same thing. Remy Blank's answer put me on the right track, it just lacked an extra div.
{{{#!div {{{#!html <h3 class="foldable">Section title</h3> }}} {{{#!div This is the section content. }}} }}}
If you look at the stylesheet, it will show you which element will be hidden with the collapsed style.
.collapsed > div, .collapsed > table, .collapsed > ul, .collapsed > dl { display: none }
The Remy code was a wrap "This is the contents of the section" inside the p markup, so it was not hidden.
source share