Markdown 中的可折叠 Table

Collapsible Table in Markdown

我在降价中有一个 table,我想将其隐藏在可折叠单元格中。

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

可折叠格式有效。但是,它没有正确呈现 table 。我的格式是否缺少某些内容?

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

NB: Make sure you have an empty line after the closing tag, otherwise the markdown/code blocks won't show correctly.

NB: Make sure you have an empty line after the closing tag if you have multiple collapsible sections.

这对我有用:

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