Skip to content

Commit 27fdafb

Browse files
committed
fix new line after table
1 parent 9c26b61 commit 27fdafb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/marked.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ Lexer.prototype.token = function(src, top) {
452452
type: 'table',
453453
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),
454454
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
455-
cells: cap[3] ? cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') : []
455+
cells: cap[3] ? cap[3].replace(/\n$/, '').split('\n') : []
456456
};
457457

458458
if (item.header.length === item.align.length) {

0 commit comments

Comments
 (0)