diff --git a/config/jsdoc.json b/config/jsdoc.json index 452fbd2..6d9d72f 100644 --- a/config/jsdoc.json +++ b/config/jsdoc.json @@ -1,5 +1,5 @@ { - "plugins": ["jsdocPlugin.js", "plugins/markdown"], + "plugins": ["jsdocPlugin", "plugins/markdown"], "templates": { "includeDate": false, "linenums": true, diff --git a/config/jsdocPlugin.js b/config/jsdocPlugin.js index f0c5d89..23160ae 100644 --- a/config/jsdocPlugin.js +++ b/config/jsdocPlugin.js @@ -8,7 +8,7 @@ exports.handlers = { beforeParse: function (e) { if (extension === extname(e.filename)) { comments = e.source.match(commentPattern); - e.source = comments ? e.source.split(commentPattern).reduce(function(result, source, i) { + e.source = comments ? e.source.split(commentPattern).reduce(function (result, source, i) { return result + source.replace(notNewLinePattern, '') + comments[i]; }, '') : e.source.replace(notNewLinePattern, ''); }