summaryrefslogtreecommitdiff
path: root/examples/with-mdx/src
diff options
context:
space:
mode:
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>