Skip to content

Commit

Permalink
2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Sep 29, 2018
1 parent adc6733 commit 3d41922
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions markdown-it-attrs.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,15 +575,15 @@ exports.getAttrs = function (str, start, options) {
}

// {.class} {..css-module}
if (char_ === classChar) {
if (key === '') {
key = 'class';
parsingKey = false;
continue;
} else if (key === 'class') {
if (char_ === classChar && key === '') {
if (str.charAt(i + 1) === classChar) {
key = 'css-module';
continue;
i += 1;
} else {
key = 'class';
}
parsingKey = false;
continue;
}

// {#id}
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.3.1",
"version": "2.3.2",
"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 3d41922

Please sign in to comment.