首页 > 解决方案 > 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>

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

标签: pythonjupyter-notebookmarkdown

解决方案


它无法正确呈现,因为您在摘要结束标记后缺少一个空行,如此处所述

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

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

这对我有用:

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

推荐阅读