Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Jul 20, 2019
1 parent 62ac6d3 commit a40f59a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions markdown-it-attrs.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,9 @@ exports.getMatchingOpeningToken = function (tokens, i) {

if (tokens[i].nesting === 0) {
return tokens[i];
} // inline tokens changes level on same token
// that have .nesting +- 1


var level = tokens[i].block ? tokens[i].level : tokens[i].level + 1; // adjust for inline tokens
}

var level = tokens[i].level;
var type = tokens[i].type.replace('_close', '_open');

for (; i >= 0; --i) {
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.1",
"version": "3.0.0",
"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 a40f59a

Please sign in to comment.