diff options
Diffstat (limited to 'packages/markdown-support')
-rw-r--r-- | packages/markdown-support/CHANGELOG.md | 23 | ||||
-rw-r--r-- | packages/markdown-support/package.json | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/packages/markdown-support/CHANGELOG.md b/packages/markdown-support/CHANGELOG.md index a1ec3da20..60f2fcfa2 100644 --- a/packages/markdown-support/CHANGELOG.md +++ b/packages/markdown-support/CHANGELOG.md @@ -1,5 +1,28 @@ # @astrojs/markdown-support +## 0.2.0 + +### Minor Changes + +- d396943: Add support for [`remark`](https://github.com/remarkjs/remark#readme) and [`rehype`](https://github.com/rehypejs/rehype#readme) plugins for both `.md` pages and `.astro` pages using the [`<Markdown>`](/docs/guides/markdown-content.md) component. + + For example, the `astro.config.mjs` could be updated to include the following. [Read the Markdown documentation](/docs/guides/markdown-content.md) for more information. + + > **Note** Enabling custom `remarkPlugins` or `rehypePlugins` removes Astro's built-in support for [GitHub-flavored Markdown](https://github.github.com/gfm/) support, [Footnotes](https://github.com/remarkjs/remark-footnotes) syntax, [Smartypants](https://github.com/silvenon/remark-smartypants). You must explicitly add these plugins to your `astro.config.mjs` file, if desired. + + ```js + export default { + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, + }; + ``` + +### Patch Changes + +- f83407e: Expose `html` to `Astro.fetchContent` (#571) + ## 0.1.2 ### Patch Changes diff --git a/packages/markdown-support/package.json b/packages/markdown-support/package.json index 550fef7a7..bf7e7d5c9 100644 --- a/packages/markdown-support/package.json +++ b/packages/markdown-support/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-support", - "version": "0.1.2", + "version": "0.2.0", "main": "./dist/index.js", "type": "module", "repository": { |