diff --git a/package.json b/package.json index d30b6880..703064e2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "remark" ], "dependencies": { - "attach-ware": "^1.0.0", + "attach-ware": "^2.0.0", "bail": "^1.0.0", "extend": "^3.0.0", "unherit": "^1.0.4", diff --git a/readme.md b/readme.md index 312e3579..2441f460 100644 --- a/readme.md +++ b/readme.md @@ -162,13 +162,22 @@ Change the way the processor works by using a plugin. **Signatures** -* `unified = unified.use(plugin[, input...])`; -* `unified = unified.use(plugins)`. +* `processor.use(plugin[, input...])`; +* `processor.use(plugins[, input...])`; +* `processor.use(list)`; +* `processor.use(matrix)`. **Parameters** * `plugin` (`Function`) — [Plugin][]. + * `plugins` (`Array.`) — List of plugins. + +* `list` (`Array`) — List where the first value is a `plugin`, + and further values are `input`; + +* `matrix` (`Array`) — Matrix where each entry is a `list`. + * `input` (`*`) — Passed to plugin. Specified by its documentation. **Returns**