diff options
author | 2025-01-30 03:21:41 -0800 | |
---|---|---|
committer | 2025-01-30 11:21:41 +0000 | |
commit | f6b7839411233c95af529eb0eee098c24e1d9d80 (patch) | |
tree | 88967bbd7760edfc1aba5d552bc91b8602d61aa0 /packages/markdown | |
parent | 2ab0a61024fa6631c35ee99a31f3c409d21dd95d (diff) | |
download | astro-@astrojs/internal-helpers@0.5.0.tar.gz astro-@astrojs/internal-helpers@0.5.0.tar.zst astro-@astrojs/internal-helpers@0.5.0.zip |
[ci] release (#13086)astro@5.2.0@astrojs/tailwind@6.0.0@astrojs/mdx@4.0.8@astrojs/markdown-remark@6.1.0@astrojs/markdoc@0.12.8@astrojs/internal-helpers@0.5.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/markdown')
-rw-r--r-- | packages/markdown/remark/CHANGELOG.md | 25 | ||||
-rw-r--r-- | packages/markdown/remark/package.json | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 93399ddae..e63889311 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,30 @@ # @astrojs/markdown-remark +## 6.1.0 + +### Minor Changes + +- [#12850](https://github.com/withastro/astro/pull/12850) [`db252e0`](https://github.com/withastro/astro/commit/db252e0692a0addf7239bfefc0220c525d63337d) Thanks [@colinbate](https://github.com/colinbate)! - Adds support for TOML frontmatter in `.md` and `.mdx` files + + Astro 5.2 automatically identifies the format of your Markdown and MDX frontmatter based on the delimiter used. With `+++` as a delimiter (instead of the `---` YAML code fence), your frontmatter will automatically be recognized and parsed as [TOML](https://toml.io). + + This is useful for adding existing content files with TOML frontmatter to your project from another framework such as Hugo. + + TOML frontmatter can also be used with [content collections](https://docs.astro.build/guides/content-collections/), and files with different frontmatter languages can live together in the same project. + + No configuration is required to use TOML frontmatter in your content files. Your delimiter will indicate your chosen frontmatter language: + + ```md + +++ + date = 2025-01-30 + title = 'Use TOML frontmatter in Astro!' + [author] + name = 'Colin Bate' + +++ + + # Support for TOML frontmatter is here! + ``` + ## 6.0.2 ### Patch Changes diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 0c5184332..a827d19b7 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-remark", - "version": "6.0.2", + "version": "6.1.0", "type": "module", "author": "withastro", "license": "MIT", |