Skip to content

Commit 6c22ae4

Browse files
committed
tables don't have to be top level
1 parent afa14d6 commit 6c22ae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/marked.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Lexer.prototype.token = function(src, top) {
249249
}
250250

251251
// table no leading pipe (gfm)
252-
if (top && (cap = this.rules.nptable.exec(src))) {
252+
if (cap = this.rules.nptable.exec(src)) {
253253
item = {
254254
type: 'table',
255255
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),
@@ -447,7 +447,7 @@ Lexer.prototype.token = function(src, top) {
447447
}
448448

449449
// table (gfm)
450-
if (top && (cap = this.rules.table.exec(src))) {
450+
if (cap = this.rules.table.exec(src)) {
451451
item = {
452452
type: 'table',
453453
header: splitCells(cap[1].replace(/^ *| *\| *$/g, '')),

0 commit comments

Comments
 (0)