diff --git a/src/editor/parser/marked.js b/src/editor/parser/marked.js index aae19ef5..e802f569 100644 --- a/src/editor/parser/marked.js +++ b/src/editor/parser/marked.js @@ -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 = { diff --git a/src/editor/utils/importMarkdown.js b/src/editor/utils/importMarkdown.js index 24fee176..293f66a2 100644 --- a/src/editor/utils/importMarkdown.js +++ b/src/editor/utils/importMarkdown.js @@ -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 => {