diff --git a/src/docs/languages/custom.md b/src/docs/languages/custom.md index df58e23d41..f34ce7435a 100644 --- a/src/docs/languages/custom.md +++ b/src/docs/languages/custom.md @@ -151,10 +151,10 @@ const { marked } = require("marked"); module.exports = function(eleventyConfig) { eleventyConfig.addExtension("md", { - compile: async function (inputContent, inputPath) { + compile: function (inputContent, inputPath) { let html = marked.parse(inputContent); - return async (data) => { + return function (data) { // Example: use `marked` only if useMarked is set in the Data Cascade if(data.useMarked) { return html;