One of the things I find myself using a lot is the details disclosure html element to make quick collapsible sections of text.
In the past I’ve tried to simplify this by making a macro that just, uses the same text, however it was fairly clunky, and was incapable of being nested further than (if I remember right) two levels in, significantly limiting what could be done with it.
So, is creating my own widget with the same function possible?
Something along the lines of:
<$details class="" summary="HelloThere" summaryClass="" state="open" id="" etc...>
Body text here.
</$details>