Skip to content

Commit

Permalink
The default code here is broken in 1.0.0 but fixed in 1.0.1 at 11ty/e…
Browse files Browse the repository at this point in the history
…leventy#2217

Swap to make the block work as-is with 1.0.0.
  • Loading branch information
zachleat committed Feb 16, 2022
1 parent f54d6bf commit 9409d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/languages/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9409d6f

Please sign in to comment.