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 = {
permalink: true,
permalinkClass: "direct-link"
permalink: markdownItAnchor.permalink.headerLink()
};
eleventyConfig.setLibrary(

View file

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