【问题标题】:Markdown tables not displayed on a github .md pageMarkdown 表未显示在 github .md 页面上
【发布时间】:2018-07-29 11:40:45
【问题描述】:

我有一个使用表格布局的降价页面,它在 VS Code 降价预览插件中正确显示为表格,但是当我将其签入 GitHub 时,它没有正确显示表格,而是显示表格降价。这是页面: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 |

任何想法我做错了什么?

【问题讨论】:

    标签: github markdown github-flavored-markdown


    【解决方案1】:

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

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

    而且会正确渲染:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-25
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 2022-01-21
      • 2021-03-30
      • 1970-01-01
      相关资源
      最近更新 更多