From b72c8477ea64700a4245a7cb231ed563183026af Mon Sep 17 00:00:00 2001 From: Leilukin Date: Tue, 4 Jun 2024 19:40:16 +0800 Subject: [PATCH] Unfo ignoring of heading anchor from ToC plugin --- eleventy.config.md.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eleventy.config.md.js b/eleventy.config.md.js index 85be47f5..ed286bde 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -13,10 +13,7 @@ const markdownItAnchor = require("markdown-it-anchor"); module.exports = function (eleventyConfig) { // Installed Plugins - eleventyConfig.addPlugin(pluginTOC, { - tags: ['h2', 'h3', 'h4', 'h5'], - ignoredElements: ['.heading-anchor'], - }); + eleventyConfig.addPlugin(pluginTOC, { tags: ['h2', 'h3', 'h4', 'h5'] }); eleventyConfig.addPlugin(embedEverything, { add: ['soundcloud'] }); // Configure slug filter