This commit is contained in:
Francisco Moretti 2026-04-20 14:25:03 +00:00 committed by GitHub
commit bfc0498286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -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",
},
},

View file

@ -7,6 +7,7 @@ module.exports = {
"./components/**/*.{ts,tsx}",
"./ui/**/*.{ts,tsx}",
"./content/**/*.{md,mdx}",
"contentlayer.config.js",
],
darkMode: ["class"],
theme: {