Switch to more accessible header permalink anchors in documentation.

This commit is contained in:
Dan Helfman 2022-08-21 21:48:07 -07:00
parent 462326406e
commit 97fad15009
2 changed files with 9 additions and 2 deletions

View file

@ -23,8 +23,7 @@ module.exports = function(eleventyConfig) {
} }
}; };
let markdownItAnchorOptions = { let markdownItAnchorOptions = {
permalink: true, permalink: markdownItAnchor.permalink.headerLink()
permalinkClass: "direct-link"
}; };
eleventyConfig.setLibrary( eleventyConfig.setLibrary(

View file

@ -530,3 +530,11 @@ main .elv-toc + h1 .direct-link {
display: none ; display: none ;
} }
} }
.header-anchor {
text-decoration: none;
}
.header-anchor:hover::after {
content: " 🔗";
}