mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 07:02:49 +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)
|
// table (gfm)
|
||||||
if (top && (cap = this.rules.table.exec(src))) {
|
if (cap = this.rules.table.exec(src)) {
|
||||||
src = src.substring(cap[0].length);
|
src = src.substring(cap[0].length);
|
||||||
|
|
||||||
item = {
|
item = {
|
||||||
|
@ -82,9 +82,9 @@ const importRegister = ContentState => {
|
|||||||
|
|
||||||
const htmlText = marked(markdown, { disableInline: true })
|
const htmlText = marked(markdown, { disableInline: true })
|
||||||
const domAst = parse5.parseFragment(htmlText)
|
const domAst = parse5.parseFragment(htmlText)
|
||||||
console.log(markdown)
|
// console.log(markdown)
|
||||||
console.log(htmlText)
|
// console.log(htmlText)
|
||||||
console.log(domAst)
|
// console.log(domAst)
|
||||||
const childNodes = domAst.childNodes
|
const childNodes = domAst.childNodes
|
||||||
|
|
||||||
const getLang = node => {
|
const getLang = node => {
|
||||||
|
Loading…
Reference in New Issue
Block a user