mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
Version Packages (#597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
4b89f4ed08
commit
816797e350
23 changed files with 69 additions and 51 deletions
|
@ -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'}],
|
|
||||||
]
|
|
||||||
},
|
|
||||||
}
|
|
||||||
```
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/markdown-support': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Expose `html` to `Astro.fetchContent` (#571)
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"lint": "prettier --check \"src/**/*.js\""
|
"lint": "prettier --check \"src/**/*.js\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^0.15.5",
|
"astro": "^0.16.0",
|
||||||
"date-fns": "^2.19.0",
|
"date-fns": "^2.19.0",
|
||||||
"deepmerge": "^4.2.2",
|
"deepmerge": "^4.2.2",
|
||||||
"docsearch.js": "^2.6.3",
|
"docsearch.js": "^2.6.3",
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4",
|
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4",
|
||||||
"@contentful/rich-text-html-renderer": "^14.1.2",
|
"@contentful/rich-text-html-renderer": "^14.1.2",
|
||||||
"@contentful/rich-text-types": "^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",
|
"eleventy-plugin-nesting-toc": "^1.2.0",
|
||||||
"luxon": "^1.25.0",
|
"luxon": "^1.25.0",
|
||||||
"markdown-it": "^12.0.2",
|
"markdown-it": "^12.0.2",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.0",
|
"astro": "^0.16.0",
|
||||||
"rehype-add-classes": "^1.0.0",
|
"rehype-add-classes": "^1.0.0",
|
||||||
"rehype-toc": "^3.0.2",
|
"rehype-toc": "^3.0.2",
|
||||||
"remark-autolink-headings": "^6.0.1",
|
"remark-autolink-headings": "^6.0.1",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanostores": "^0.3.3"
|
"nanostores": "^0.3.3"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tailwindcss": "^2.1.2",
|
"tailwindcss": "^2.1.2",
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -1,5 +1,30 @@
|
||||||
# astro
|
# 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
|
## 0.15.5
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "astro",
|
"name": "astro",
|
||||||
"version": "0.15.5",
|
"version": "0.16.0",
|
||||||
"author": "Skypack",
|
"author": "Skypack",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
"test": "uvu test -i fixtures -i benchmark -i test-utils.js"
|
"test": "uvu test -i fixtures -i benchmark -i test-utils.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/markdown-support": "0.1.2",
|
"@astrojs/markdown-support": "0.2.0",
|
||||||
"@astrojs/parser": "0.15.4",
|
"@astrojs/parser": "0.15.4",
|
||||||
"@astrojs/prism": "0.2.2",
|
"@astrojs/prism": "0.2.2",
|
||||||
"@astrojs/renderer-preact": "0.1.3",
|
"@astrojs/renderer-preact": "0.1.3",
|
||||||
|
|
|
@ -1,5 +1,28 @@
|
||||||
# @astrojs/markdown-support
|
# @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
|
## 0.1.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/markdown-support",
|
"name": "@astrojs/markdown-support",
|
||||||
"version": "0.1.2",
|
"version": "0.2.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
"vscode-languageserver-textdocument": "^1.0.1"
|
"vscode-languageserver-textdocument": "^1.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.1",
|
"astro": "^0.16.0",
|
||||||
"astro-scripts": "0.0.1"
|
"astro-scripts": "0.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
"build": "astro build"
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.15.5"
|
"astro": "^0.16.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue