refactored code
parent
6c2d80cfe7
commit
10e5d2a452
2
index.js
2
index.js
|
@ -123,7 +123,6 @@ let parseMarkdown = function(doc){
|
|||
// errors.push(str)
|
||||
}
|
||||
});
|
||||
console.log(sections);
|
||||
return sections;
|
||||
}
|
||||
|
||||
|
@ -133,7 +132,6 @@ function parseDirectory(directory){
|
|||
let mediaType = getMediaFromDirectory(directory);
|
||||
const filenames = getFilesFromDir(path.resolve(directory));
|
||||
filenames.forEach((filename) => {
|
||||
console.log(filename);
|
||||
const doc = fs.readFileSync(filename);
|
||||
let sections = parseMarkdown(doc); // parse the markdown document
|
||||
const langCode = getLangFromFilename(filename);
|
||||
|
|
Loading…
Reference in New Issue