-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
So far to add a custom CSS class to the TOC is to use the following workaround:
eleventyConfig.addPlugin(toc, {
wrapper: undefined,
});
eleventyConfig.addFilter("bootstrapToc", (tocHtml) => {
if (tocHtml) {
return tocHtml
.replace(/<ol>/g, `<ol class="list-group">`)
.replace(/<li>/g, `<li class="list-group-item">`);
}
return tocHtml;
});
Would be nice to have a built-in feature to achieve the same results.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels