|
@@ -528,7 +528,7 @@ function buildAST(md, mdTags=syntax, offset=0, tree={tag: 'root'}, stack=[]){
|
|
const {[index]: titleContent } = currentNode.startMatch
|
|
const {[index]: titleContent } = currentNode.startMatch
|
|
if (titleContent && recursive){
|
|
if (titleContent && recursive){
|
|
currentNode.title = buildAST(titleContent, mdTags).children
|
|
currentNode.title = buildAST(titleContent, mdTags).children
|
|
- currentNode.title.forEach(item => (typeof item === 'object') && item.parent = currentNode)
|
|
|
|
|
|
+ currentNode.title.forEach(item => ((typeof item === 'object') && (item.parent = currentNode)))
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
currentNode.title = [titleContent]
|
|
currentNode.title = [titleContent]
|