代码之家  ›  专栏  ›  技术社区  ›  Andrey

github.md页上不显示标记表

  •  1
  • Andrey  · 技术社区  · 7 年前

    我有一个使用表布局的标记页,它在VS代码标记预览插件中正确地显示为表,但是当我将它签入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 |
    

    你知道我做错了什么吗?

    1 回复  |  直到 7 年前
        1
  •  4
  •   juzraai    7 年前

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

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

    它将正确呈现:

    enter image description here