Configure ToC plugin to ignore the .heading-anchor element
This commit is contained in:
parent
c0f8b07d92
commit
67cb814c55
|
@ -13,7 +13,10 @@ const markdownItAnchor = require("markdown-it-anchor");
|
|||
|
||||
module.exports = function (eleventyConfig) {
|
||||
// Installed Plugins
|
||||
eleventyConfig.addPlugin(pluginTOC, { tags: ['h2', 'h3', 'h4', 'h5'] });
|
||||
eleventyConfig.addPlugin(pluginTOC, {
|
||||
tags: ['h2', 'h3', 'h4', 'h5'],
|
||||
ignoredElements: ['.heading-anchor'],
|
||||
});
|
||||
eleventyConfig.addPlugin(embedEverything, { add: ['soundcloud'] });
|
||||
|
||||
// Configure slug filter
|
||||
|
|
Loading…
Reference in New Issue