Feature Requests: Accordion block and/or TOC

Hi P2 folks! A #featurerequest:

We’d find very helpful a simple accordion block that can collapse (show/hide) other block content. In wanting to use our P2 as a resource, we keep finding situations where it would be helpful to collapse content (in our situation, text and/or code snippets) to keep the posts from getting overly long.

Another way to keep track on unwieldy posts would be some sort of automatic table of contents block functionality (wikipedia style) that is generated at the top of the post based on heading levels therein.