Updates deps, including new major version of markdown-it-anchor.

This commit is contained in:
Zach Leatherman
2021-07-28 09:05:01 -05:00
parent 8bffa6fce7
commit 1be6346bde
2 changed files with 12 additions and 8 deletions

View File

@@ -70,9 +70,13 @@ module.exports = function(eleventyConfig) {
breaks: true,
linkify: true
}).use(markdownItAnchor, {
permalink: true,
permalinkClass: "direct-link",
permalinkSymbol: "#"
permalink: markdownItAnchor.permalink.ariaHidden({
placement: "after",
class: "direct-link",
symbol: "#",
level: [1,2,3,4],
}),
slugify: eleventyConfig.getFilter("slug")
});
eleventyConfig.setLibrary("md", markdownLibrary);