Skip to content

Commit

Permalink
fix bug causing empty final table cell droppage
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiokim committed Mar 4, 2014
1 parent a22fb45 commit 00cc3f2
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 @@ -424,7 +424,7 @@ Lexer.prototype.token = function(src, top, bq) {
type: 'table',
header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
cells: cap[3].replace(/(?: *\| *)?\n$/, '|').split('\n')
};

for (i = 0; i < item.align.length; i++) {
Expand Down

0 comments on commit 00cc3f2

Please sign in to comment.