【问题标题】:How can I fold content in Github markdown?如何在 Github markdown 中折叠内容?
【发布时间】:2019-02-12 07:32:42
【问题描述】:

github如何折叠文本块?

看看这个issuecomment

【问题讨论】:

    标签: github markdown folding github-flavored-markdown


    【解决方案1】:

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

    支持可折叠部分:

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

    more in this example

    关键是将整个内容包裹在&lt;p&gt;中:

    <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>
    

    【讨论】:

    • 如果你只想包装一个代码块,你可以省略---;您只需要在&lt;p&gt;前后各有一个空行 的围栏代码块。
    猜你喜欢
    • 1970-01-01
    • 2012-09-24
    • 1970-01-01
    • 2021-05-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-12
    • 2021-01-04
    • 1970-01-01
    相关资源
    最近更新 更多