docsy icon indicating copy to clipboard operation
docsy copied to clipboard

Extending Prism to new language is not working

Open dorifr opened this issue 3 years ago • 1 comments

Extending Prism to a new language is not working. I followed the documentation instructions:

  1. I updated prism_syntax_highlighting = true in the config.toml file.
  2. I downloaded prism 1.28 with a new language.
  3. I copied the new prism.js and prism.css to static/js and static/css respectively.
  4. 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.

dorifr avatar Jul 31 '22 15:07 dorifr

@alexearnshaw do you want to take a look at this? Anyone else done much with Prism? I can take a look myself as well.

LisaFC avatar Aug 03 '22 10:08 LisaFC

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/

emckean avatar Aug 18 '22 17:08 emckean

Hi, I fixed it, long ago, by copy pasting the extended language code to the current 1.21 version. Thanks

dorifr avatar Aug 18 '22 18:08 dorifr

Thanks for the update!

emckean avatar Aug 18 '22 18:08 emckean