summaryrefslogtreecommitdiff
path: root/astro.config.mjs
diff options
context:
space:
mode:
authormatthew <matt.kosarek@canonical.com>2026-03-24 16:23:58 -0400
committermatthew <matt.kosarek@canonical.com>2026-03-24 16:23:58 -0400
commit5df5ae2fc3f3bcbd53a9e34ba6b8ddaf4b00036a (patch)
tree3346cc0490a993d5b993740bb5e1884b399be350 /astro.config.mjs
parentada238192cb091645ad3ac1850cb0be2bb2d62b7 (diff)
feature: plugin post completeHEADpluginmaster
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs10
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',