update
parent
d0b53909c5
commit
38b20d1df2
8
index.js
8
index.js
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue