diff --git a/lib/rules_block/table.js b/lib/rules_block/table.js index 064a70b..aa87f33 100644 --- a/lib/rules_block/table.js +++ b/lib/rules_block/table.js @@ -34,7 +34,7 @@ module.exports = function table(state, startLine, endLine, silent) { if (!/^[-:| ]+$/.test(lineText)) { return false; } rows = lineText.split('|'); - if (rows <= 2) { return false; } + if (rows.length < 2) { return false; } aligns = []; for (i = 0; i < rows.length; i++) { t = rows[i].trim();