Igor Faoro
Igor Faoro

Reputation: 11

Table does not render correctly - Markdown Github

My github readme table does not render in the correct way. I use this:

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) { }``` |

But render this:

Table Image

Upvotes: 0

Views: 1271

Answers (1)

Igor Faoro
Igor Faoro

Reputation: 11

I got it sorted out. I should have a line between "Request Options" and the table.

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) { }``` |

Upvotes: 1

Related Questions