diff --git a/contentlayer.config.js b/contentlayer.config.js index 281f05a..1f92b14 100644 --- a/contentlayer.config.js +++ b/contentlayer.config.js @@ -170,8 +170,9 @@ export default makeSource({ [ rehypeAutolinkHeadings, { + behavior: "wrap", properties: { - className: ["subheading-anchor"], + className: ["before:content-['#'] before:absolute before:invisible before:-ml-[1em] hover:before:visible before:text-slate-300 pl-[1em] -ml-[1em]"], ariaLabel: "Link to section", }, }, diff --git a/tailwind.config.js b/tailwind.config.js index 7bddcdd..04306a6 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,7 @@ module.exports = { "./components/**/*.{ts,tsx}", "./ui/**/*.{ts,tsx}", "./content/**/*.{md,mdx}", + "contentlayer.config.js", ], darkMode: ["class"], theme: {