小智 13

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

<details open>

  <summary>click to collapse</summary>

  this one starts expanded because of the "open"

</details>
Run Code Online (Sandbox Code Playgroud)


Von*_*onC 6

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

支持可折叠部分:

<details>
  <summary>Click to expand</summary>
  whatever
</details>
Run Code Online (Sandbox Code Playgroud)

在此示例中查看更多内容

关键是将全部内容包装在内<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>
Run Code Online (Sandbox Code Playgroud)

  • 如果你只想包装一个代码块,你可以省略`---`;你只需要在“&lt;p&gt;”内的_前后各有一个空行的围栏代码块。 (6认同)