@Mtt really cool! I was looking into something like this because of things like obsidian. I was playing with the idea of having a detail/summary but that over complicated things.

Have you thought about making it into a shortcode? I think the tufte theme has pretty good examples.