Remove slug filter

This commit is contained in:
Helen Chong 2024-10-17 19:06:25 +08:00
parent 58ff33505c
commit 695679397d
1 changed files with 0 additions and 12 deletions

View File

@ -14,18 +14,6 @@ import slugify from "slugify";
export let markdownLibrary;
export default function(eleventyConfig) {
// Configure slug filter
eleventyConfig.addFilter("slug", (str) => {
if (!str) {
return;
}
return slugify(str, {
lower: true,
remove: /["]/g,
});
});
// Configure markdown-it-anchor plugins
eleventyConfig.setLibrary('md', markdownIt().use(markdownItAnchor))
const linkAfterHeader = markdownItAnchor.permalink.linkAfterHeader({