Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Jan 7, 2018
1 parent cf80970 commit eef1b2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions markdown-it-attrs.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function attributes(md) {
});
if (match) {
pattern.transform(tokens, i, j);
if (pattern.name === 'inline attributes') {
if (pattern.name === 'inline attributes' || pattern.name === 'inline nesting 0') {
// retry, may be several inline attributes
p--;
}
Expand Down Expand Up @@ -461,7 +461,10 @@ module.exports = [{
type: 'inline',
children: [{
position: -1,
content: utils.hasCurly('end')
content: utils.hasCurly('end'),
type: function type(t) {
return t !== 'code_inline';
}
}]
}],
transform: function transform(tokens, i, j) {
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.2.0",
"version": "1.2.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 eef1b2e

Please sign in to comment.