From 9409d6f9686b08da49f20eaf2de4cf598e36a387 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 16 Feb 2022 11:54:16 -0600 Subject: [PATCH] The default code here is broken in 1.0.0 but fixed in 1.0.1 at https://github.com/11ty/eleventy/issues/2217 Swap to make the block work as-is with 1.0.0. --- src/docs/languages/custom.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;