|
@@ -591,7 +591,6 @@ function buildAST(md, mdTags=syntax, offset=0, tree={tag: 'root'}, stack=[]){
|
|
|
|
|
|
const newNode = {tag: childName, startOffset: offset, parent: currentNode, startMatch: currentNode.startMatch}
|
|
const newNode = {tag: childName, startOffset: offset, parent: currentNode, startMatch: currentNode.startMatch}
|
|
children.push(newNode) //create LI and add it into children of ol/ul
|
|
children.push(newNode) //create LI and add it into children of ol/ul
|
|
- //
|
|
|
|
|
|
|
|
newNode.children = buildAST(listMD, mdTags).children
|
|
newNode.children = buildAST(listMD, mdTags).children
|
|
newNode.children.forEach(item => ((typeof item === 'object') && (item.parent = currentNode)))
|
|
newNode.children.forEach(item => ((typeof item === 'object') && (item.parent = currentNode)))
|