From 2b4d25c80afbf227d914e90de92fa018c44ee948 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> 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