We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c26b61 commit 27fdafbCopy full SHA for 27fdafb
lib/marked.js
@@ -452,7 +452,7 @@ Lexer.prototype.token = function(src, top) {
452
type: 'table',
453
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),
454
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
455
- cells: cap[3] ? cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') : []
+ cells: cap[3] ? cap[3].replace(/\n$/, '').split('\n') : []
456
};
457
458
if (item.header.length === item.align.length) {
0 commit comments