Closed OrenBochman closed 2 years ago
You can use webpack or other builder, it will do all stuff for you. That's generic programming question, not specific to this package.
I came across this issue while looking for the right syntax to do this with eleventy, and found the solution a bit later:
import markdownItFootnote from "markdown-it-footnote";
// etc...
export default async function(eleventyConfig) {
// etc...
eleventyConfig.amendLibrary("md", (mdLib) => mdLib.use(markdownItFootnote));
// etc...
}
Thanks for adding footnote support.
For devs who are not coding for node please also document how to import this module for use a js module with imports instead of using require.