summaryrefslogtreecommitdiff
path: root/examples/with-mdx/src
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-07-01 16:51:28 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-01 15:51:28 -0500
commit5fe52737cbb3676af69bb446afa7f3b53b78dc34 (patch)
tree075ff4023815ee6bbcbec82ac9e3e95f95fddd67 /examples/with-mdx/src
parentb9d26f39e29f7fce89b9f8b4df54e454adb47e50 (diff)
downloadastro-5fe52737cbb3676af69bb446afa7f3b53b78dc34.tar.gz
astro-5fe52737cbb3676af69bb446afa7f3b53b78dc34.tar.zst
astro-5fe52737cbb3676af69bb446afa7f3b53b78dc34.zip
Update MDX example to address failure (#3799)
* fix: do not use symbol in JSX runtime * chore: update MDX example Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/with-mdx/src')
-rw-r--r--examples/with-mdx/src/pages/index.mdx8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/with-mdx/src/pages/index.mdx b/examples/with-mdx/src/pages/index.mdx
index cbd392371..cedcac1dd 100644
--- a/examples/with-mdx/src/pages/index.mdx
+++ b/examples/with-mdx/src/pages/index.mdx
@@ -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: 'hi@jane.com' },
{ 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>