-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MDX example to address failure (#3799)
* fix: do not use symbol in JSX runtime * chore: update MDX example Co-authored-by: Nate Moore <[email protected]>
- Loading branch information
1 parent
b9d26f3
commit 5fe5273
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix internal error for MDX integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"recommendations": [ | ||
"astro-build.astro-vscode", | ||
"silvenon.mdx" | ||
], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,18 @@ import Counter from '../components/Counter.jsx'; | |
import Title from '../components/Title.astro'; | ||
export const components = { h1: Title }; | ||
|
||
# Hello world! | ||
|
||
export const authors = [ | ||
{ name: 'Jane', email: '[email protected]' }, | ||
{ name: 'John', twitter: '@john2002' }, | ||
]; | ||
export const published = new Date('2022-02-01'); | ||
|
||
# Hello world! | ||
|
||
Written by: {new Intl.ListFormat('en').format(authors.map(d => d.name))}. | ||
|
||
Published on: {new Intl.DateTimeFormat('en', {dateStyle: 'long'}).format(published)}. | ||
|
||
<Counter client:idle>## Counter</Counter> | ||
<Counter client:idle> | ||
## This is a counter! | ||
</Counter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters