【问题标题】:Collapsible Table in MarkdownMarkdown 中的可折叠表格
【发布时间】:2021-01-04 07:15:56
【问题描述】:

我有一个 Markdown 表格,我想隐藏在一个可折叠的单元格中。

<details><summary>Open to view Data Dictionary</summary>
    |Feature|Format|Type|Description|
    |---|---|---|---|
    |**Id**|*integer*|Nominal|Identifier for each property.|
    |**PID**|*integer*|Nominal|Parcel identification number - can be used with city web site for parcel review.|
    |**MS SubClass**|*integer*|Nominal|Identifies the type of dwelling involved in the sale. Type is coded, please refer to full data documentation|
    |**MS Zoning**|*string*|Nominal|Identifies the general zoning classification of the sale.|
</details>

可折叠格式有效。但是,它没有正确呈现表格。我的格式有什么遗漏吗?

【问题讨论】:

    标签: python jupyter-notebook markdown


    【解决方案1】:

    它没有正确呈现,因为您在摘要结束标记后缺少一个空行,正如 here 所解释的那样

    注意:确保结束标记后有一个空行, 否则降价/代码块将无法正确显示。

    注意:确保结束标记后有一个空行 如果您有多个可折叠部分。

    这对我有用:

    <details><summary>Open to view Data Dictionary</summary>
    
    |Feature|Format|Type|Description|
    |---|---|---|---|
    |**Id**|*integer*|Nominal|Identifier for each property.|
    |**PID**|*integer*|Nominal|Parcel identification number - can be usedwith city web site for parcel review.|
    |**MS SubClass**|*integer*|Nominal|Identifies the type of dwellinginvolved in the sale. Type is coded, please refer to full datadocumentation|
    |**MS Zoning**|*string*|Nominal|Identifies the general zoningclassification of the sale.|
    </details>
    

    【讨论】:

    • 谢谢!这就是我所忽略的
    • 没问题!您能否将答案标记为正确,以便每个人都清楚它正在工作?祝你有美好的一天
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-07
    • 2017-05-28
    相关资源
    最近更新 更多