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

A quick favor: was anything I wrote incorrect or misspelled, or do you still have questions? Please use this form to let me know or ask for help!