mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 02:11:35 +01:00
Make headings clickable via anchors
This commit is contained in:
@@ -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()],
|
||||
|
||||
Reference in New Issue
Block a user