Skip to content

Commit

Permalink
downgrade syntax for node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed May 20, 2018
1 parent 205e1ca commit 8be24e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const defaultOptions = {
rightDelimiter: '}'
};

module.exports = function attributes(md, options = defaultOptions) {
module.exports = function attributes(md, options) {
if (!options) {
options = defaultOptions;
}

const patterns = patternsConfig(options);

function curlyAttrs(state) {
Expand Down

0 comments on commit 8be24e4

Please sign in to comment.