remark-autolink-headings
Advanced tools
Comparing version 4.0.0 to 5.0.0
@@ -0,1 +1,6 @@ | ||
# 5.0.0 | ||
* Updated for remark 7.x (thanks to @wooorm). | ||
* (Breaking) Drops support for Node 0.12. | ||
# 4.0.0 | ||
@@ -2,0 +7,0 @@ |
@@ -40,4 +40,4 @@ 'use strict'; | ||
function attacher(remark) { | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
function attacher() { | ||
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -47,9 +47,7 @@ var _behaviour$content$op = _extends({ | ||
content: contentDefaults | ||
}, opts); | ||
}, opts), | ||
linkProperties = _behaviour$content$op.linkProperties, | ||
behaviour = _behaviour$content$op.behaviour, | ||
content = _behaviour$content$op.content; | ||
var linkProperties = _behaviour$content$op.linkProperties; | ||
var behaviour = _behaviour$content$op.behaviour; | ||
var content = _behaviour$content$op.content; | ||
if (behaviour !== wrap && !linkProperties) { | ||
@@ -56,0 +54,0 @@ linkProperties = { 'aria-hidden': true }; |
{ | ||
"name": "remark-autolink-headings", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Automatically add links to headings in Markdown.", | ||
@@ -12,6 +12,5 @@ "main": "dist/index.js", | ||
"pretest": "eslint src", | ||
"prepublish": "del-cli dist && babel src --out-dir dist --ignore /__tests__/", | ||
"prepublish": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/", | ||
"report": "nyc report --reporter=html", | ||
"test": "nyc ava", | ||
"test-012": "nyc ava" | ||
"test": "nyc ava" | ||
}, | ||
@@ -27,3 +26,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "^0.15.0", | ||
"ava": "^0.18.0", | ||
"babel-cli": "^6.5.1", | ||
@@ -40,7 +39,7 @@ "babel-core": "^6.5.2", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-import": "^1.10.2", | ||
"remark": "^5.0.1", | ||
"remark-html": "^5.0.0", | ||
"eslint-plugin-import": "^2.0.1", | ||
"remark": "^7.0.0", | ||
"remark-html": "^6.0.0", | ||
"remark-slug": "^4.1.0", | ||
"nyc": "^7.0.0" | ||
"nyc": "^10.0.0" | ||
}, | ||
@@ -47,0 +46,0 @@ "homepage": "https://github.com/ben-eb/remark-autolink-headings", |
@@ -28,3 +28,3 @@ # [remark]-autolink-headings [![Build Status](https://travis-ci.org/ben-eb/remark-autolink-headings.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/remark-autolink-headings.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/remark-autolink-headings.svg)][deps] | ||
var markdown = '# Hello'; | ||
var result = remark().use([ slug, headings, html ]).process(markdown); | ||
var result = remark().use([ slug, headings, html ]).processSync(markdown); | ||
console.log(result); | ||
@@ -31,0 +31,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8288