This does two things:
- adds support for adding custom unified plugins (get them from npm or write your own), via the
remarkPlugins(for mdast plugins) andrehypePlugins(for hast plugins) options. - adds
rehype-slug. This seems like a sensible default plugin to have, just likeremark-gfm(already enabled).
Plus:
- updates all unified deps
- replaces fs-extra by plain old fs (there are new things now, like fs.cp, so it makes less sense to use another dependency)
Closes #12
Closes #24
This does two things:
- adds support for adding custom unified plugins (get them from npm or write your own), via the `remarkPlugins` (for mdast plugins) and `rehypePlugins` (for hast plugins) options.
- adds `rehype-slug`. This seems like a sensible default plugin to have, just like `remark-gfm` (already enabled).
Plus:
- updates all unified deps
- replaces fs-extra by plain old fs (there are new things now, like fs.cp, so it makes less sense to use another dependency)