Skip to content

Commit

Permalink
Disable auto linked headings until we can solve ID clobbering
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierman committed Oct 30, 2023
1 parent 7ca45f4 commit 29a71a3
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 29a71a3

Please sign in to comment.