diff options
23 files changed, 69 insertions, 51 deletions
diff --git a/.changeset/clever-cheetahs-jump.md b/.changeset/clever-cheetahs-jump.md deleted file mode 100644 index 282307801..000000000 --- a/.changeset/clever-cheetahs-jump.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'astro': minor -'@astrojs/markdown-support': minor ---- - -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'}], - ] - }, -} -``` diff --git a/.changeset/good-beers-worry.md b/.changeset/good-beers-worry.md deleted file mode 100644 index d81a24a0f..000000000 --- a/.changeset/good-beers-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdown-support': patch ---- - -Expose `html` to `Astro.fetchContent` (#571) diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 5902be652..cf9f0607b 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/blog/package.json b/examples/blog/package.json index 3eafc1728..d528ee010 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/docs/package.json b/examples/docs/package.json index c81d25f51..8b16a16a8 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 18fe97a58..c035e24d6 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 28f4a4ab6..b2a7c5d72 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 225d1022d..6d2becfb5 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 83a5fbf41..aef296c25 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index ee8e7e80f..f96e6376b 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index ff3b1e454..5fc007396 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index 22b8fb201..7b44619c4 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -11,7 +11,7 @@ "lint": "prettier --check \"src/**/*.js\"" }, "dependencies": { - "astro": "^0.15.5", + "astro": "^0.16.0", "date-fns": "^2.19.0", "deepmerge": "^4.2.2", "docsearch.js": "^2.6.3", @@ -25,7 +25,7 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4", "@contentful/rich-text-html-renderer": "^14.1.2", "@contentful/rich-text-types": "^14.1.2", - "astro": "^0.15.5", + "astro": "^0.16.0", "eleventy-plugin-nesting-toc": "^1.2.0", "luxon": "^1.25.0", "markdown-it": "^12.0.2", diff --git a/examples/starter/package.json b/examples/starter/package.json index 44a9b2f9d..3a5dbb910 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index f37b72225..3f73a0c3b 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.0", + "astro": "^0.16.0", "rehype-add-classes": "^1.0.0", "rehype-toc": "^3.0.2", "remark-autolink-headings": "^6.0.1", diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 40077149e..073806ad9 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index bc248e59e..580f92ba0 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" }, "dependencies": { "nanostores": "^0.3.3" diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 06a27b59e..ea325ae75 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "tailwindcss": "^2.1.2", - "astro": "^0.15.5" + "astro": "^0.16.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 007a2cc08..a2ed3934a 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,30 @@ # astro +## 0.16.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 + +- Updated dependencies [d396943] +- Updated dependencies [f83407e] + - @astrojs/markdown-support@0.2.0 + ## 0.15.5 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index ebec27310..b43460663 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.15.5", + "version": "0.16.0", "author": "Skypack", "license": "MIT", "type": "module", @@ -41,7 +41,7 @@ "test": "uvu test -i fixtures -i benchmark -i test-utils.js" }, "dependencies": { - "@astrojs/markdown-support": "0.1.2", + "@astrojs/markdown-support": "0.2.0", "@astrojs/parser": "0.15.4", "@astrojs/prism": "0.2.2", "@astrojs/renderer-preact": "0.1.3", 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": { diff --git a/tools/language-server/package.json b/tools/language-server/package.json index 033b05a1e..af5b34e9f 100644 --- a/tools/language-server/package.json +++ b/tools/language-server/package.json @@ -28,7 +28,7 @@ "vscode-languageserver-textdocument": "^1.0.1" }, "devDependencies": { - "astro": "^0.15.1", + "astro": "^0.16.0", "astro-scripts": "0.0.1" } } diff --git a/www/package.json b/www/package.json index 81661eeca..b7bf364d5 100644 --- a/www/package.json +++ b/www/package.json @@ -7,6 +7,6 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.15.5" + "astro": "^0.16.0" } } |