astro/packages
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
..
astro Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
astro-parser Version Packages (#1150) 2021-08-18 09:24:09 -07:00
astro-prism [ci] yarn format 2021-07-20 04:07:49 +00:00
create-astro Remove whitespace (#1176) 2021-08-20 11:05:22 -07:00
markdown-support Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
renderers Version Packages (#1064) 2021-08-11 15:01:00 -07:00