Unfo ignoring of heading anchor from ToC plugin

This commit is contained in:
Helen Chong 2024-06-04 19:40:16 +08:00
parent 67cb814c55
commit 2b4d25c80a
1 changed files with 1 additions and 4 deletions

View File

@ -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