mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 05:21:41 +08:00
fix: #202 Table inside a list is not supported
This commit is contained in:
parent
76fd327758
commit
03ffedd71b
@ -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 = {
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user