Merge branch 'main' of github.com:withastro/astro
This commit is contained in:
commit
dff89a0fa3
7 changed files with 24 additions and 9 deletions
5
.changeset/plenty-suits-happen.md
Normal file
5
.changeset/plenty-suits-happen.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Updates the @docs default value listed for config.publicDir and config.outputDir
|
5
.changeset/silent-cows-shave.md
Normal file
5
.changeset/silent-cows-shave.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/markdown-remark': patch
|
||||
---
|
||||
|
||||
Escape expressions when mode == 'md'
|
5
.changeset/soft-dolphins-join.md
Normal file
5
.changeset/soft-dolphins-join.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Prevent CLI from hanging
|
|
@ -96,4 +96,6 @@ Please upgrade Node.js to a supported version: "${engines}"\n`);
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
main();
|
||||
main()
|
||||
.then(() => process.exit(0))
|
||||
.catch(() => process.exit(1));
|
||||
|
|
|
@ -157,7 +157,7 @@ export interface AstroUserConfig {
|
|||
* @docs
|
||||
* @name publicDir
|
||||
* @type {string}
|
||||
* @default `"./publicDir"`
|
||||
* @default `"./public"`
|
||||
* @description
|
||||
* Set the directory for your static assets. Files in this directory are served at `/` during dev and copied to your build directory during build. These files are always served or copied as-is, without transform or bundling.
|
||||
*
|
||||
|
@ -175,7 +175,7 @@ export interface AstroUserConfig {
|
|||
* @docs
|
||||
* @name outDir
|
||||
* @type {string}
|
||||
* @default `"./outDir"`
|
||||
* @default `"./out"`
|
||||
* @description Set the directory that `astro build` writes your final build to.
|
||||
*
|
||||
* The value can be either an absolute file system path or a path relative to the project root.
|
||||
|
|
|
@ -50,8 +50,7 @@ export async function renderMarkdown(content: string, opts?: MarkdownRenderingOp
|
|||
|
||||
let parser = unified()
|
||||
.use(markdown)
|
||||
.use(isMDX ? [remarkJsx] : [])
|
||||
.use(isMDX ? [remarkExpressions] : [])
|
||||
.use(isMDX ? [remarkJsx, remarkExpressions] : [])
|
||||
.use([remarkUnwrap]);
|
||||
|
||||
if (remarkPlugins.length === 0 && rehypePlugins.length === 0) {
|
||||
|
@ -91,10 +90,8 @@ export async function renderMarkdown(content: string, opts?: MarkdownRenderingOp
|
|||
});
|
||||
|
||||
parser
|
||||
.use(isMDX ? [rehypeJsx] : [])
|
||||
.use(isMDX ? [rehypeExpressions] : [])
|
||||
.use(isMDX ? [] : [rehypeRaw])
|
||||
.use(isMDX ? [rehypeEscape] : [])
|
||||
.use(isMDX ? [rehypeJsx, rehypeExpressions] : [rehypeRaw])
|
||||
.use(rehypeEscape)
|
||||
.use(rehypeIslands);
|
||||
|
||||
let result: string;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
Date,Commits (24hr),Issues (24hr),Issues:BUG (24hr),Issues:RFC (24hr),Issues:DOC (24hr),PRs (24hr),Open PRs,Open Issues,Bugs: Needs Triage,Bugs: Accepted,RFC: In Progress,RFC: Accepted,Date (ISO)
|
||||
"Sunday, April 3, 2022",13,2,2,0,0,8,7,88,42,40,0,0,"2022-04-03T12:01:50.051Z"
|
||||
"Saturday, April 2, 2022",5,0,0,0,0,4,8,88,42,40,0,0,"2022-04-02T12:01:53.880Z"
|
||||
"Friday, April 1, 2022",13,0,0,0,0,7,7,90,43,41,0,0,"2022-04-01T12:04:00.672Z"
|
||||
"Thursday, March 31, 2022",6,4,4,0,0,6,10,93,46,41,0,0,"2022-03-31T12:02:11.044Z"
|
||||
|
|
|
Loading…
Reference in a new issue