表格无法正确呈现 - Markdown Github

时间:2018-05-21 16:51:01

标签: github markdown tabular readme

我的github自述表无法以正确的方式呈现。我用这个:

Request options:
| Option | Description |
| --- | --- |
| url | Request url |
| method | ```'get'``` \| ```'post'``` \| ```'put'``` \| ```'delete'``` - (default: ```'get'```) |
| headers | optional array: ```[{name: string, value: string}]``` |
| body | Request body (any type) |
| responseType | ```'text'``` \| ```'json'``` - (defult: ```'text'```) |
| success | Success function - ```function(data) { }``` |
| error | Error function - ```function(err) { }``` |

但是渲染一下:

Table Image

1 个答案:

答案 0 :(得分:0)

我把它整理好了。我应该在"请求选项"之间划一条线。和桌子。

Request options:

| Option | Description |
| --- | --- |
| url | Request url |
| method | ```'get'``` \| ```'post'``` \| ```'put'``` \| ```'delete'``` - (default: ```'get'```) |
| headers | optional array: ```[{name: string, value: string}]``` |
| body | Request body (any type) |
| responseType | ```'text'``` \| ```'json'``` - (defult: ```'text'```) |
| success | Success function - ```function(data) { }``` |
| error | Error function - ```function(err) { }``` |