Markdown表未显示在github .md页面上

时间:2018-07-29 11:40:46

标签: github markdown github-flavored-markdown

我有一个使用表格布局的markdown页面,它在VS Code markdown预览插件中正确显示为表格,但是当我将其检入GitHub时,它无法正确显示表格,而是显示表格markdown。这是页面:https://github.com/path-foundation/path-protocol/blob/docs/docs/api.md

降价:

Inputs
| type|name |description |
|----|---|---|
| *address* | _user | address of certificate owner |
| *bytes32* | _hash | sha256 hash of the certificate text |

在github上查看时,此页面上显示:

Inputs | type | name | description | | ---- | --- | --- | | address | _user | address of certificate owner | | bytes32 | _hash | sha256 hash of the certificate text |

有什么主意我在做错什么吗?

1 个答案:

答案 0 :(得分:2)

在表格之前(“输入”之后)插入一个空行:

Inputs

| type|name |description |
|----|---|---|
| *address* | _user | address of certificate owner |
| *bytes32* | _hash | sha256 hash of the certificate text |

它将正确呈现:

enter image description here