Make headings clickable via anchors

This commit is contained in:
thiloho
2025-04-27 05:23:27 +02:00
parent 67fe3181ba
commit 6534a8d330
4 changed files with 77 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeSlug from "rehype-slug";
export default defineConfig({
site: "https://thiloho.github.io",
@@ -18,6 +20,15 @@ export default defineConfig({
shikiConfig: {
theme: "github-dark",
},
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: "wrap",
},
],
],
},
integrations: [sitemap()],