如何折叠 Github markdown 中的内容?

How can I fold content in Github markdown?

github如何折叠文本块?

看看这个issuecomment

检查是否遵循 dear-github issue 166,其中提到:

支持可折叠部分:

<details>
<summary>Click to expand</summary>

whatever

</details>

The key is to wrap the whole contents inside the <p>:

<details><summary>stuff with *mark* **down**</summary><p>

## _formatted_ **heading** with [a](link)

---
{{standard 3-backtick code block omitted from here due to escaping issues}}
---

Collapsible until here.
</p></details>

您也可以启动默认展开的折叠部分。

<details open>

  <summary>click to collapse</summary>

  this one starts expanded because of the "open"

</details>