astro/packages/markdown-support
Robin Métral 397d8f3d84
Upgrade unified deps and improve unified plugins types (#1200)
* Upgrade @astrojs/markdown-support deps and update types

* Add changeset

* Update changeset

* Switch astro-markdown-plugins example to use rehype-autolink-headings

Usage of remark-autolink-headings is discouraged in favor of the rehype counterpart: https://github.com/remarkjs/remark-autolink-headings\#remark-autolink-headings

* Add stricter types for unified plugins

This includes a few suggestions from a code review:
- use vfile.toString instead of vfile.value.toString
- refactor plugins to follow unified best practices instead of returning functions that return a plugin
- use any instead of any[] for plugin options types

* Narrow down types to more specific hast or mdast typings
2021-08-25 08:17:45 -04:00
..
src Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
CHANGELOG.md Version Packages (#1163) 2021-08-19 18:03:07 -06:00
package.json Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
tsconfig.json tsconfig fix (#752) 2021-07-19 18:23:39 -07:00