diff options
Diffstat (limited to 'packages/markdown')
-rw-r--r-- | packages/markdown/component/CHANGELOG.md | 38 | ||||
-rw-r--r-- | packages/markdown/component/package.json | 2 | ||||
-rw-r--r-- | packages/markdown/remark/CHANGELOG.md | 27 | ||||
-rw-r--r-- | packages/markdown/remark/package.json | 2 |
4 files changed, 67 insertions, 2 deletions
diff --git a/packages/markdown/component/CHANGELOG.md b/packages/markdown/component/CHANGELOG.md new file mode 100644 index 000000000..9643d05ba --- /dev/null +++ b/packages/markdown/component/CHANGELOG.md @@ -0,0 +1,38 @@ +# @astrojs/markdown-component + +## 0.2.0 + +### Minor Changes + +- [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default. + + For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). + + Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. + + ```js + // https://astro.build/config + export default defineConfig({ + legacy: { + astroFlavoredMarkdown: true, + }, + }); + ``` + +* [#3986](https://github.com/withastro/astro/pull/3986) [`bccd88f0e`](https://github.com/withastro/astro/commit/bccd88f0ebe1fbf383c0cee4b27a4c24c72dea72) Thanks [@matthewp](https://github.com/matthewp)! - Move the Markdown component to its own package + + This change moves the Markdown component into its own package where it will be maintained separately. All that needs to change from a user's perspective is the import statement: + + ```astro + --- + import { Markdown } from 'astro/components'; + --- + ``` + + Becomes: + + ```astro + --- + import Markdown from '@astrojs/markdown-component'; + --- + ``` diff --git a/packages/markdown/component/package.json b/packages/markdown/component/package.json index fcbb120c5..2b2743ae6 100644 --- a/packages/markdown/component/package.json +++ b/packages/markdown/component/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-component", - "version": "0.1.0", + "version": "0.2.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 17fbae5bb..35a0da237 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,32 @@ # @astrojs/markdown-remark +## 0.13.0 + +### Minor Changes + +- [`ba11b3399`](https://github.com/withastro/astro/commit/ba11b33996d79c32da947986edb0f32dbcc04aaf) Thanks [@RafidMuhymin](https://github.com/RafidMuhymin)! - fixed generated slugs in markdown that ends with a dash + +* [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default. + + For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). + + Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. + + ```js + // https://astro.build/config + export default defineConfig({ + legacy: { + astroFlavoredMarkdown: true, + }, + }); + ``` + +- [#4031](https://github.com/withastro/astro/pull/4031) [`6e27a5fdc`](https://github.com/withastro/astro/commit/6e27a5fdc21276cad26cd50e16a2709a40a7cbac) Thanks [@natemoo-re](https://github.com/natemoo-re)! - **BREAKING** Renamed Markdown utility function `getHeaders()` to `getHeadings()`. + +### Patch Changes + +- [#4008](https://github.com/withastro/astro/pull/4008) [`399d7e269`](https://github.com/withastro/astro/commit/399d7e269834d11c046b390705a9a53d3738f3cf) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Avoid parsing JSX, components, and Astro islands when using "plain" md mode. This brings `markdown.mode: 'md'` in-line with our docs description. + ## 0.12.0 ### Minor Changes diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 5cb1c7cbd..cb8096a4d 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-remark", - "version": "0.12.0", + "version": "0.13.0", "type": "module", "author": "withastro", "license": "MIT", |