diff options
author | 2021-07-01 15:06:18 -0500 | |
---|---|---|
committer | 2021-07-01 15:06:18 -0500 | |
commit | 816797e350c452882fdbe1b8ed845cd74ef6cd44 (patch) | |
tree | 138ab2a81cb995c45f1284a02e167420a63d41f3 /packages/markdown-support | |
parent | 4b89f4ed080dd0f1efed0d35311af543de1f9c60 (diff) | |
download | astro-816797e350c452882fdbe1b8ed845cd74ef6cd44.tar.gz astro-816797e350c452882fdbe1b8ed845cd74ef6cd44.tar.zst astro-816797e350c452882fdbe1b8ed845cd74ef6cd44.zip |
Version Packages (#597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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": { |