GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

Issue with table rendering #44

Open zswang opened 6 years ago

zswang commented 6 years ago

The table is followed by "\n"

var kramed = require('kramed');
console.log(kramed(`
| Name | Description | Profile |
| ---- | ----------- | ------- |
| format  | Specifies the input format. Returns the inserted archives in the same format. |  |
| token  | The token that allows you to use this API. |  |
| entity  | The entity objects (they must be valid, and may have profile dependent additional information). |  |
`));
Name Description Profile
format Specifies the input format. Returns the inserted archives in the same format.
token The token that allows you to use this API.
entity The entity objects (they must be valid, and may have profile dependent additional information).

see: https://github.com/GitbookIO/gitbook/issues/1062