style: 🎨 chain markdown-it plugin declarations instead of calling amendLibrary every time
This commit is contained in:
parent
cfda1dcdfe
commit
b75e2659b4
1 changed files with 7 additions and 4 deletions
|
@ -88,10 +88,13 @@ export default async function (eleventyConfig) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.amendLibrary('md', (mdLib) => mdLib.use(markdownItAbbr));
|
eleventyConfig.amendLibrary('md', (mdLib) =>
|
||||||
eleventyConfig.amendLibrary('md', (mdLib) => mdLib.use(markdownItCollapsible));
|
mdLib
|
||||||
eleventyConfig.amendLibrary('md', (mdLib) => mdLib.use(markdownItCallouts));
|
.use(markdownItAbbr)
|
||||||
eleventyConfig.amendLibrary('md', (mdLib) => mdLib.use(markdownItFootnote));
|
.use(markdownItCollapsible)
|
||||||
|
.use(markdownItCallouts)
|
||||||
|
.use(markdownItFootnote)
|
||||||
|
);
|
||||||
|
|
||||||
eleventyConfig.addShortcode('year', () => `${new Date().getFullYear()}`);
|
eleventyConfig.addShortcode('year', () => `${new Date().getFullYear()}`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue