summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/astro.config.mjs (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-08-25Upgrade unified deps and improve unified plugins types (#1200)Gravatar Robin Métral 1-1/+2
* 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-23Add zod schema validation (#1198)Gravatar Fred K. Schott 1-14/+12
* add zod schema validation * update pageUrlFormat config name * add trailing slash support to config
2021-07-20[ci] yarn formatGravatar FredKSchott 1-9/+5
2021-07-01Remark and rehype plugins (#562)Gravatar Pavel Mineev 1-0/+25
* remark plugins * remove unused dependency * enable codeblocks * backward compatibility with remark-code-titles * add support for rehype plugins * add proper types for plugins * fixes after review - connect plugins by name - make plugins configurable - connect gfm and footnotes if no plugins provided from config - add more plugins to example * update and rename example * add documentation for markdown plugins * chore: rename with-markdown-plugins example * chore: restructure dependencies * feat: add back smartypants, fix mdx expressions * chore: remove log * test: add markdown plugin tests * chore: add changeset * docs: update markdown doc Co-authored-by: Nate Moore <nate@skypack.dev>