Closed MangelMaxime closed 1 year ago
/cc @zachleat
Work around is to set the function to a noop:
eleventyConfig.setLibrary("md", {
disable: () => {},
render: (content) => markdown(content),
});
@NickColley Indeed,
I manually modified the file in the node modules (just temporary ^^). And for a complete workaround, enable
should also be set to noop.
Thank you @NickColley! This fix will ship with 2.0.0-canary.18!
Describe the bug
I am using
remark
as the markdown library via eleventy-plugin-remark.When running my project against
v2.0.0-canary.16
, I get this errorTo Reproduce Steps to reproduce the behavior:
eleventyRemark
Expected behavior A clear and concise description of what you expected to happen.
The project should compile.
Screenshots If applicable, add screenshots to help explain your problem.
Environment:
eleventy --version
ornpx @11ty/eleventy --version
] v2.0.0-canary.16Additional context
I think the problem is coming from this line:
https://github.com/11ty/eleventy/blob/30fd4c5d823fc047c66c3f79cab1303caaa1e93b/src/Engines/Markdown.js#L28
Related to:
Does that means that now when the markdown library is overwritten the new library needs to probide
disable
andenable
functions?Should eleventy only try to call these functions, if they exist?