pull/3/head
nrfq 2021-11-05 13:42:05 -04:00
parent d0b53909c5
commit 38b20d1df2
1 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ let parseMarkdown = function(doc){
// errors.push(str)
}
});
return children;//, errors;
return children, errors;
}
function parseDirectory(directory){
@ -159,9 +159,9 @@ function parseAll(dirArray){
dirArray.forEach( (directory) => {
let dirJson = parseDirectory(directory);
rootChildren.push(dirJson);
// if (errors.length !== 0) {
// errors_array.push(errors)
// }
if (errors.length !== 0) {
errors_array.push(errors)
}
});
let rootJson = {
type: 'root',