Skip to content

Commit

Permalink
Update for retext@5.x
Browse files Browse the repository at this point in the history
Closes GH-10.
  • Loading branch information
wooorm committed Mar 16, 2017
1 parent e53982d commit 44faf3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ var pos = require('retext-pos');

module.exports = keywords;

function keywords(retext, options) {
var maximum = (options || {}).maximum || 5;
function keywords(options) {
this.use(pos).use(gatherKeywords, options);
}

retext.use(pos);
function gatherKeywords(options) {
var maximum = (options || {}).maximum || 5;

return transformer;

Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"unist-util-visit": "^1.0.0"
},
"devDependencies": {
"browserify": "^13.0.1",
"browserify": "^14.1.0",
"esmangle": "^1.0.1",
"nyc": "^10.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"retext": "^4.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^2.0.0",
"retext": "^5.0.0",
"tape": "^4.0.0",
"xo": "^0.17.1"
},
Expand Down Expand Up @@ -67,7 +67,8 @@
]
},
"remarkConfig": {
"output": true,
"presets": "wooorm"
"plugins": [
"preset-wooorm"
]
}
}

0 comments on commit 44faf3e

Please sign in to comment.