如何在Github markdown中折叠内容?

时间:2018-09-07 01:42:01

标签: github folding github-flavored-markdown

github如何折叠文本块?

看看这个issuecomment

1 个答案:

答案 0 :(得分:2)

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

支持可折叠部分:

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

请参见more in this example

  

关键是将全部内容包装在<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>