diff options
Diffstat (limited to 'astro.config.mjs')
| -rw-r--r-- | astro.config.mjs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs index 64eb8c6..58632ab 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,12 +1,22 @@ import { defineConfig } from 'astro/config'; import sitemap from '@astrojs/sitemap'; +import rehypeSlug from 'rehype-slug'; +import rehypeAutolinkHeadings from 'rehype-autolink-headings'; export default defineConfig({ output: 'static', site: 'https://matthewkosarek.xyz', integrations: [sitemap()], markdown: { + rehypePlugins: [ + rehypeSlug, + [rehypeAutolinkHeadings, { + behavior: 'prepend', + properties: { class: 'heading-anchor', ariaHidden: 'true', tabIndex: -1 }, + content: { type: 'text', value: '#' }, + }], + ], shikiConfig: { themes: { light: 'github-light', |
