Parcourir la source

ol/ul/li investigations and comments

Ivan Asmer il y a 2 ans
Parent
commit
512b461c61
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      index.mjs

+ 1 - 0
index.mjs

@@ -591,6 +591,7 @@ 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)))