Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
+ '\n'
)
}
return comment
})
return documentation.formats.md.call(this, comments)
}
var paths = argv._
var opt = {
shallow: 's' in argv ? !!argv.s : false
}
documentation
.build(paths, {
hljs: {
highlightAuto: true
},
shallow: opt.shallow,
access: ['public'],
github: true
})
.then(mdFormatter)
.then(output => {
// break line for gfm
console.log(output.split('\n').map(line => line.trimRight()).join(' \n'))
})
// .then(output => {
// // output is a string of Markdown data
// fs.writeFileSync('./output.md', output)