astro/examples/with-markdown-plugins
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
..
public make example favicons prefer non-dark mode 2021-08-17 22:33:42 -07:00
src cleanup example favicons 2021-08-16 14:34:08 -07:00
.gitignore Remark and rehype plugins (#562) 2021-07-01 11:55:22 -05:00
.npmrc Remark and rehype plugins (#562) 2021-07-01 11:55:22 -05:00
astro.config.mjs Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
package.json Upgrade unified deps and improve unified plugins types (#1200) 2021-08-25 08:17:45 -04:00
tsconfig.json [ci] yarn format 2021-08-13 23:32:55 +00:00