From 29a71a37737f8b77172556abbfb3070ab0a70f28 Mon Sep 17 00:00:00 2001 From: mthierman Date: Mon, 30 Oct 2023 12:36:39 -0600 Subject: [PATCH] Disable auto linked headings until we can solve ID clobbering --- astro.config.ts | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index a12644b648..7f0cfe660c 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -2,27 +2,29 @@ import { defineConfig } from "astro/config"; import mdx from "@astrojs/mdx"; import react from "@astrojs/react"; import tailwind from "@astrojs/tailwind"; -import remarkToc from "remark-toc"; -import { rehypeHeadingIds } from "@astrojs/markdown-remark"; -import rehypeSlug from "rehype-slug"; -import rehypeAutolinkHeadings from "rehype-autolink-headings"; + +// Disable auto linking for headings until we can solve ID clobbering.. +// import remarkToc from "remark-toc"; +// import { rehypeHeadingIds } from "@astrojs/markdown-remark"; +// import rehypeSlug from "rehype-slug"; +// import rehypeAutolinkHeadings from "rehype-autolink-headings"; // https://astro.build/config export default defineConfig({ markdown: { - remarkPlugins: [remarkToc], + // remarkPlugins: [remarkToc], rehypePlugins: [ - rehypeHeadingIds, - rehypeSlug, - [ - rehypeAutolinkHeadings, - { - behavior: "wrap", - properties: { - className: `no-underline`, - }, - }, - ], + // rehypeHeadingIds, + // [rehypeSlug, { prefix: Math.random() }], + // [ + // rehypeAutolinkHeadings, + // { + // behavior: "wrap", + // properties: { + // className: `no-underline`, + // }, + // }, + // ], ], shikiConfig: { theme: "css-variables",