diff --git a/.gitignore b/.gitignore index 6256790..0e8ff7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules npm-debug.log styleguide +.vscode/ \ No newline at end of file diff --git a/lib/analyzer.js b/lib/analyzer.js index 8c320aa..924c543 100644 --- a/lib/analyzer.js +++ b/lib/analyzer.js @@ -25,8 +25,8 @@ exports.analyze = function (root) { rule = rule.next(); } var joined = rules.join('\n\n'); - var md = comment.text.replace(/(@document|@doc|@docs|@styleguide)\s*\n/, ''); - md = md.replace(/@title\s.*\n/, ''); + var md = comment.text.replace(/(@document|@doc|@docs|@styleguide)\s*[\r]*\n/, ''); + md = md.replace(/@title\s.*[\r]*\n/, ''); list.push({ rule: this.syntaxHighlighter.highlight(joined), html: this.markdownParser(md),