Fix usage of level in the options object for markdown-it-anchor

This commit is contained in:
Siim Pragi 2021-09-06 15:14:40 +03:00
parent e058ac3028
commit 09ab6cfdbe

View File

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