mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-01 19:20:51 +00:00
Remove slug filter
This commit is contained in:
parent
58ff33505c
commit
695679397d
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user