Skip to content

Commit

Permalink
🗜️ build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkedJS bot committed Jan 26, 2022
1 parent 6e1f923 commit f77fa68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/marked.cjs
Expand Up @@ -747,7 +747,7 @@ var Tokenizer = /*#__PURE__*/function () {
};
}),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
rows: cap[3] ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
};

if (item.header.length === item.align.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/marked.esm.js
Expand Up @@ -652,7 +652,7 @@ class Tokenizer {
type: 'table',
header: splitCells(cap[1]).map(c => { return { text: c }; }),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
rows: cap[3] ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
};

if (item.header.length === item.align.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/marked.umd.js
Expand Up @@ -749,7 +749,7 @@
};
}),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
rows: cap[3] ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : []
};

if (item.header.length === item.align.length) {
Expand Down
2 changes: 1 addition & 1 deletion marked.min.js

Large diffs are not rendered by default.

0 comments on commit f77fa68

Please sign in to comment.