tables don't have to be top level

This commit is contained in:
Tony Brix 2019-03-11 09:07:25 -05:00
parent afa14d61fa
commit 6c22ae4e9e

View File

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