Skip to content

Commit

Permalink
2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed May 29, 2019
1 parent 03518ed commit b27d721
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions markdown-it-attrs.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ var defaultOptions = {
allowedAttributes: []
};

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

module.exports = function attributes(md, options_) {
var options = Object.assign({}, defaultOptions);
options = Object.assign(options, options_);
var patterns = patternsConfig(options);

function curlyAttrs(state) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdown-it-attrs",
"version": "2.4.0",
"version": "2.4.1",
"description": "Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes",
"main": "index.js",
"license": "MIT",
Expand Down

0 comments on commit b27d721

Please sign in to comment.