DEV Community

Peter Thaleikis 🍪
Peter Thaleikis 🍪

Posted on • Originally published at releasecandidate.dev on

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

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.

Top comments (0)