astro/packages/markdown-support/src
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
..
codeblock.ts Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
index.ts Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
load-plugins.ts Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
rehype-collect-headers.ts Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
rehype-expressions.ts Add support for named slots (#661) 2021-07-12 13:07:39 -05:00
remark-expressions.ts [ci] yarn format 2021-07-07 20:10:09 +00:00
remark-scoped-styles.ts Use npm package names to load internal deps (#294) 2021-06-04 14:19:01 -04:00
types.ts Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00