From 5df5ae2fc3f3bcbd53a9e34ba6b8ddaf4b00036a Mon Sep 17 00:00:00 2001 From: matthew Date: Tue, 24 Mar 2026 16:23:58 -0400 Subject: feature: plugin post complete --- astro.config.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'astro.config.mjs') 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', -- cgit v1.2.1