Copied from this post
Summary 1
<details markdown='1'>
<summary>Summary of folded text</summary>
Extended information which is folded by default.
</details>
Summary 2
<details markdown='1' open>
<summary>Summary of folded text</summary>
Extended information which is open by default.
</details>
If you want to put Markdown within the folded text there needs to be a blank line after the </summary>
tag.
<details markdown='1'><summary>
Summary of folded text
</summary>
Test List
* first item
* second item
#### Test subchapter 1
Test numbered list
1. Numbered list item 1
2. Numbered list item 2
#### Test subchapter 2
Text
</details>