Skip to content

Commit

Permalink
fix new line after table
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Mar 7, 2019
1 parent 9c26b61 commit 27fdafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Lexer.prototype.token = function(src, top) {
type: 'table',
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
cells: cap[3] ? cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') : []
cells: cap[3] ? cap[3].replace(/\n$/, '').split('\n') : []
};

if (item.header.length === item.align.length) {
Expand Down

0 comments on commit 27fdafb

Please sign in to comment.