fix: #202 Table inside a list is not supported

This commit is contained in:
Jocs 2018-04-23 21:26:50 +08:00
parent 76fd327758
commit 03ffedd71b
2 changed files with 4 additions and 4 deletions

View File

@ -417,7 +417,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 = {

View File

@ -82,9 +82,9 @@ const importRegister = ContentState => {
const htmlText = marked(markdown, { disableInline: true })
const domAst = parse5.parseFragment(htmlText)
console.log(markdown)
console.log(htmlText)
console.log(domAst)
// console.log(markdown)
// console.log(htmlText)
// console.log(domAst)
const childNodes = domAst.childNodes
const getLang = node => {