summaryrefslogtreecommitdiff
path: root/packages/markdown-support
diff options
context:
space:
mode:
authorGravatar github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 2021-07-01 15:06:18 -0500
committerGravatar GitHub <noreply@github.com> 2021-07-01 15:06:18 -0500
commit816797e350c452882fdbe1b8ed845cd74ef6cd44 (patch)
tree138ab2a81cb995c45f1284a02e167420a63d41f3 /packages/markdown-support
parent4b89f4ed080dd0f1efed0d35311af543de1f9c60 (diff)
downloadastro-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.md23
-rw-r--r--packages/markdown-support/package.json2
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": {