docsy
docsy copied to clipboard
Extending Prism to new language is not working
Extending Prism to a new language is not working. I followed the documentation instructions:
- I updated prism_syntax_highlighting = true in the config.toml file.
- I downloaded prism 1.28 with a new language.
- I copied the new prism.js and prism.css to static/js and static/css respectively.
- I ran the command hugo server and nothing happens. The old prism 1.21 version was not replaced by the new version.
I run macOS on M1 MacBook Air.
@alexearnshaw do you want to take a look at this? Anyone else done much with Prism? I can take a look myself as well.
hi! did #1149 fix the problem for you?
this might also be a place where clearing the Hugo cache might help: https://gohugo.io/commands/hugo_mod_clean/
Hi, I fixed it, long ago, by copy pasting the extended language code to the current 1.21 version. Thanks
Thanks for the update!