rehype-slug
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "rehype-slug", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Add id attributes to headings", | ||
@@ -29,8 +29,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"browserify": "^14.1.0", | ||
"esmangle": "^1.0.0", | ||
"nyc": "^8.3.1", | ||
"rehype": "^3.0.0", | ||
"remark-cli": "^2.0.0", | ||
"remark-preset-wooorm": "^1.0.0", | ||
"nyc": "^10.0.0", | ||
"rehype": "^4.0.0", | ||
"remark-cli": "^3.0.0", | ||
"remark-preset-wooorm": "^2.0.0", | ||
"tape": "^4.0.0", | ||
@@ -40,3 +40,3 @@ "xo": "^0.17.0" | ||
"scripts": { | ||
"build-md": "remark . --quiet --frail", | ||
"build-md": "remark . -qfo", | ||
"build-bundle": "browserify index.js --bare -s rehypeSlug > rehype-slug.js", | ||
@@ -63,5 +63,4 @@ "build-mangle": "esmangle rehype-slug.js > rehype-slug.min.js", | ||
"remarkConfig": { | ||
"output": true, | ||
"presets": "wooorm" | ||
"plugins": ["preset-wooorm"] | ||
} | ||
} |
@@ -34,6 +34,9 @@ # rehype-slug [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
rehype().use(slug).process(doc, {fragment: true}, function (err, file) { | ||
if (err) throw err; | ||
console.log(String(file)); | ||
}); | ||
rehype() | ||
.data('settings', {fragment: true}) | ||
.use(slug) | ||
.process(doc, function (err, file) { | ||
if (err) throw err; | ||
console.log(String(file)); | ||
}); | ||
``` | ||
@@ -40,0 +43,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
5191
88