Skip to content

Commit

Permalink
IE doesn't support spread syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nagaozen committed May 28, 2019
1 parent 12d16a2 commit cc006fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][unreleased]

## [5.2.3] - 2019-05-28
* `...linkTokens` -> `(...).apply(null, linkTokens)` IE doesn't support spread syntax.

## [5.2.2] - 2019-05-28
* `...linkTokens` -> `[].concat(linkTokens)` makes IE/EDGE compatible.
* `...linkTokens` -> `[].concat(linkTokens)` makes IE compatible.

## [5.2.1] - 2019-05-28
* fix typo
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const renderPermalink = (slug, opts, state, idx) => {
if (opts.permalinkSpace) {
linkTokens[position[!opts.permalinkBefore]](space())
}
state.tokens[idx + 1].children[position[opts.permalinkBefore]]([].concat(linkTokens))
state.tokens[idx + 1].children[position[opts.permalinkBefore]].apply(null, linkTokens)
}

const uniqueSlug = (slug, slugs) => {
Expand Down
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-anchor",
"version": "5.2.2",
"version": "5.2.3",
"description": "Header anchors for markdown-it.",
"source": "index.js",
"main": "dist/markdownItAnchor.js",
Expand Down

0 comments on commit cc006fd

Please sign in to comment.