Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Sep 15, 2017
1 parent e795e94 commit 8184b95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion markdown-it-attrs.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ module.exports = [{
var attrToken = tokens[i].children[j - 1];
var attrs = utils.getAttrs(token.content, 0);
utils.addAttrs(attrs, attrToken);
token.content = token.content.slice(endChar + 1);
if (token.content.length === endChar + 1) {
tokens[i].children.splice(j, 1);
} else {
token.content = token.content.slice(endChar + 1);
}
}
}, {
/**
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": "1.1.0",
"version": "1.1.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 8184b95

Please sign in to comment.