Remove slug filter
This commit is contained in:
parent
58ff33505c
commit
695679397d
|
@ -14,18 +14,6 @@ import slugify from "slugify";
|
||||||
export let markdownLibrary;
|
export let markdownLibrary;
|
||||||
|
|
||||||
export default function(eleventyConfig) {
|
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
|
// Configure markdown-it-anchor plugins
|
||||||
eleventyConfig.setLibrary('md', markdownIt().use(markdownItAnchor))
|
eleventyConfig.setLibrary('md', markdownIt().use(markdownItAnchor))
|
||||||
const linkAfterHeader = markdownItAnchor.permalink.linkAfterHeader({
|
const linkAfterHeader = markdownItAnchor.permalink.linkAfterHeader({
|
||||||
|
|
Loading…
Reference in New Issue