Skip to content

Commit

Permalink
remove comma-dangle eslint rule for compatibility with older versions…
Browse files Browse the repository at this point in the history
… of node, fixes #26
  • Loading branch information
Javier Cubides committed Sep 29, 2017
1 parent 784f048 commit c7186e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"consistent-return": "off",
"jsx-a11y/href-no-hash": "off",
"react/jsx-filename-extension": "off",
"comma-dangle": "off"
}
}
6 changes: 3 additions & 3 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function parseMarkdown(markdown) {
const language = Prism.languages[lang] || Prism.languages.autoit;
return Prism.highlight(code, language);
},
xhtmlOut: true,
xhtmlOut: true
};

md.set(options);
Expand All @@ -95,7 +95,7 @@ function parseMarkdown(markdown) {
tokens[idx].content,
codeTags[codeTags.length - 1],
opts.langPrefix,
opts.highlight,
opts.highlight
);
};

Expand Down Expand Up @@ -134,5 +134,5 @@ module.exports = {
parse,
parseCodeBlock,
parseFrontMatter,
parseMarkdown,
parseMarkdown
};

0 comments on commit c7186e6

Please sign in to comment.