Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending Prism to new language is not working #1139

Closed
dorifr opened this issue Jul 31, 2022 · 4 comments · Fixed by #1342
Closed

Extending Prism to new language is not working #1139

dorifr opened this issue Jul 31, 2022 · 4 comments · Fixed by #1342

Comments

@dorifr
Copy link

dorifr commented Jul 31, 2022

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.

@LisaFC
Copy link
Collaborator

LisaFC commented Aug 3, 2022

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

@emckean
Copy link
Collaborator

emckean commented Aug 18, 2022

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/

@dorifr
Copy link
Author

dorifr commented Aug 18, 2022

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

@emckean
Copy link
Collaborator

emckean commented Aug 18, 2022

Thanks for the update!

@emckean emckean closed this as completed Aug 18, 2022
LisaFC added a commit that referenced this issue Jan 5, 2023
LisaFC added a commit that referenced this issue Jan 6, 2023
* Update Netlify instructions

Fixes #1139

* Update Hugo and Go variable instructions
dseynaev pushed a commit to openanalytics/docsy that referenced this issue Jan 29, 2023
* Update Netlify instructions

Fixes google#1139

* Update Hugo and Go variable instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants