loading...

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

spekulatius1984 profile image Peter Thaleikis πŸͺ Originally published at releasecandidate.dev on ・1 min read

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.

Discussion

pic
Editor guide