diff options
Diffstat (limited to 'examples/with-mdx/src')
-rw-r--r-- | examples/with-mdx/src/pages/index.mdx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/with-mdx/src/pages/index.mdx b/examples/with-mdx/src/pages/index.mdx index 84c9cc5fd..b93def233 100644 --- a/examples/with-mdx/src/pages/index.mdx +++ b/examples/with-mdx/src/pages/index.mdx @@ -15,3 +15,15 @@ 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>This is a **counter**!</Counter> + +## Syntax highlighting + +We also support syntax highlighting in MDX out-of-the-box! This example uses our default [Shiki theme](https://github.com/shikijs/shiki). See the [MDX integration docs](https://docs.astro.build/en/guides/integrations-guide/mdx/#syntax-highlighting) for configuration options. + +```astro +--- +const weSupportAstro = true +--- + +<h1>Hey, what theme is that? Looks nice!</h1> +``` |