Bash/HTML/JS is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

Subscribe to my newsletter and never miss my upcoming articles

This is one of the small articles I wish I had found while researching a problem I encountered. So I hope it solves your issue without much fuss.

If you are into the static generator 11ty like me you might stumble upon one of these messages:

  • "Bash" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "HTML" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "JS" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "Pug" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

Prism.js is the syntax highlighting library used in eleventy.

Good news is: I've got an easy solution for you available. Change the spelling to lowercase and you should be good to go.

Comments (2)

Chris Bongers's photo

Yeah so annoying, tend to use lowercase anyway, but I keep typing sh for bash 😂

Peter Thaleikis's photo

Yeah, classic :D One of a million mini mistakes that can happen easily.