We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afa14d6 commit 6c22ae4Copy full SHA for 6c22ae4
lib/marked.js
@@ -249,7 +249,7 @@ Lexer.prototype.token = function(src, top) {
249
}
250
251
// table no leading pipe (gfm)
252
- if (top && (cap = this.rules.nptable.exec(src))) {
+ if (cap = this.rules.nptable.exec(src)) {
253
item = {
254
type: 'table',
255
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),
@@ -447,7 +447,7 @@ Lexer.prototype.token = function(src, top) {
447
448
449
// table (gfm)
450
- if (top && (cap = this.rules.table.exec(src))) {
+ if (cap = this.rules.table.exec(src)) {
451
452
453
0 commit comments