Ben Borgers

How to fix curly bracket ({{ }}) parse errors in Eleventy markdown

October 13, 2021

I ran into some issues when creating an Eleventy site where I had curly braces in my markdown posts ({{ like this }}), which were meant as part of code samples and not as dynamic variables to be evaluated by Eleventy.

To solve this, I removed the templating engine that markdown is processed with. You can do this in your .eleventy.js configuration file like this:

module.exports = function(eleventyConfig) {
  return {
    markdownTemplateEngine: false
  }
}

Subscribe to my newsletter!

A weekly round-up of new blog posts and updates to projects I’m working on.