Skip to content

Commit 0f595bd

Browse files
committed
4.1.2
1 parent 833d55e commit 0f595bd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

markdown-it-attrs.browser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ module.exports = function (options) {
513513
token.nesting = 0;
514514
var content = tokens[i + 1].content;
515515
var start = content.lastIndexOf(options.leftDelimiter);
516-
token.attrs = utils.getAttrs(content, start, options);
516+
var attrs = utils.getAttrs(content, start, options);
517+
utils.addAttrs(attrs, token);
517518
token.markup = content;
518519
tokens.splice(i + 1, 2);
519520
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-it-attrs",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"description": "Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes",
55
"main": "index.js",
66
"license": "MIT",

0 commit comments

Comments
 (0)