Skip to content

Commit

Permalink
Remove slug filter
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Oct 17, 2024
1 parent c52a0a1 commit cbc90b6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/_config/markdown-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ export default function(eleventyConfig) {
});
eleventyConfig.addPlugin(embedEverything, { add: ['soundcloud'] });

// 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({
Expand Down

0 comments on commit cbc90b6

Please sign in to comment.