python - 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>
可折叠格式有效。但是,它没有正确呈现表格。我的格式有什么遗漏吗?
解决方案
它无法正确呈现,因为您在摘要结束标记后缺少一个空行,如此处所述
注意:确保结束标记后有一个空行,否则降价/代码块将无法正确显示。
注意:如果您有多个可折叠部分,请确保在结束标记后有一个空行。
这对我有用:
<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>
推荐阅读
- python - 如何修复Python中的重复while循环
- json - 使用 Oracle PL/SQL 将字符串转换为 JSON 对象
- c# - ASP.NET / C#:带双引号的变量
- javascript - 如何根据每四个逗号将字符串拆分为数组?
- python - 如何使用 selenium 迭代并单击其文本相同的每个链接文本?
- python - docker中的“不允许操作”的ipc地址绑定错误
- flutter - 新数据进入时streamBuilder不更新
- python - 正则表达式用 Python 中的英文逗号替换中文标点符号
- javascript - react-redux useSelector hook 不允许将 props 直接传递给选择器
- c++ - 来自 glxinfo 的 opengl 版本