diff --git a/lib/lex/block.js b/lib/lex/block.js index 96fc6f6..c5fa279 100644 --- a/lib/lex/block.js +++ b/lib/lex/block.js @@ -141,7 +141,7 @@ Lexer.prototype.token = function(src, top, bq) { } // table no leading pipe (gfm) - if (top && (cap = this.rules.nptable.exec(src))) { + if (cap = this.rules.nptable.exec(src)) { src = src.substring(cap[0].length); item = { @@ -312,7 +312,7 @@ Lexer.prototype.token = function(src, top, bq) { } // table (gfm) - if (top && (cap = this.rules.table.exec(src))) { + if (cap = this.rules.table.exec(src)) { src = src.substring(cap[0].length); item = {