tables don't have to be top level
This commit is contained in:
parent
afa14d61fa
commit
6c22ae4e9e
@ -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, '')),
|
||||
|
Loading…
x
Reference in New Issue
Block a user