diff options
author | 2022-06-30 18:11:12 +0000 | |
---|---|---|
committer | 2022-06-30 18:11:12 +0000 | |
commit | af23bdd515645b7fa27e82f19229aebd1c0a7096 (patch) | |
tree | d7fedf0d808e4740bbe387bc17a518029364512e /examples/with-mdx/src | |
parent | 032ad1c047a62dd663067cc562537d16f2872aa7 (diff) | |
download | astro-af23bdd515645b7fa27e82f19229aebd1c0a7096.tar.gz astro-af23bdd515645b7fa27e82f19229aebd1c0a7096.tar.zst astro-af23bdd515645b7fa27e82f19229aebd1c0a7096.zip |
[ci] format
Diffstat (limited to 'examples/with-mdx/src')
-rw-r--r-- | examples/with-mdx/src/pages/index.mdx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/examples/with-mdx/src/pages/index.mdx b/examples/with-mdx/src/pages/index.mdx index e541df27c..cbd392371 100644 --- a/examples/with-mdx/src/pages/index.mdx +++ b/examples/with-mdx/src/pages/index.mdx @@ -1,19 +1,17 @@ -import Counter from '../components/Counter.jsx' -import Title from '../components/Title.astro' -export const components = { h1: Title } +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') + { name: 'Jane', email: 'hi@jane.com' }, + { name: 'John', twitter: '@john2002' }, +]; +export const published = new Date('2022-02-01'); 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>## Counter</Counter> |