Theme colors for code blocks don't seem to be rendering correctly #77
-
Thanks for your support to Prism Theme. I love the theme very much. When I change the But in the docs, the color is different and the effect is as follows: Appreciate any help on this. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
Have you updated the Lotus Docs theme? If not try running |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yes. It looks like some of the prism assets are not loading for you. I can use your example code block without issue: |
Beta Was this translation helpful? Give feedback.
-
What can I do to fix prism's rendering issues? |
Beta Was this translation helpful? Give feedback.
-
It's a path issue. The PrismJS autoloader plugin is looking for
The correct path in your case includes
This is caused by the autoloader language path being hardcoded in the The Prism website notes:
I'll remove this in a patch shortly. It should solve your issue once you rebuild your site on GitHub Pages. |
Beta Was this translation helpful? Give feedback.
-
Fixed by a6d0d9b Update and see if this resolves your issue? Thanks for pointing this issue out. 👍 |
Beta Was this translation helpful? Give feedback.
-
Sorry. The fix doesn't work. I'll update again once I've rectified the issue. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
-
Fixed by bc1752e Run |
Beta Was this translation helpful? Give feedback.
Fixed by bc1752e
Run
hugo mod get -u
locally and push to your repo. Should resolve the issue (#78)