you can also use the following:
<details>
<summary>foo</summary>
bar
</details>
It will render as:


You can nest content inside, just make sure to leave empty lines.
I often combine with the search plugin. For instance:
<details>
<summary>Invoices 2024</summary>
``search (you need 3 backtick here)
tag:invoice
tag:2024
`` (here too)
</details>
1 Like