Replies: 2 comments 5 replies
-
Since the switch to Shikiji (around Content v2.8.5 or so), the CSS variables theme is no longer supported (see https://github.com/antfu/shikiji#hard-breaking-changes). Probably related are:
Good luck! |
Beta Was this translation helpful? Give feedback.
-
I think I‘m experiencing a different problem. When I check the network tab, each code block is sending a fetch request to a cdn from what appears to be the getHighlighter call. When I was still using the css variables in an older version, there was not a network request for each code block. I‘m not sure but it seemed like the grammars and theme were being loaded from node modules rather than hitting a cdn. This pre component I built is also causing |
Beta Was this translation helpful? Give feedback.
-
I just upgraded to the latest version of
@nuxt/content
("@nuxt/content": "^2.9.0"
) and I noticed my code highlighting was no longer working. I have anuxt.config.ts
file with this config.The output I now get with my markdown is something like this, in which each token is black.
Before I had ouput like this:
Any help would be greatly appreciated, I am not sure what is going on that caused this.
Beta Was this translation helpful? Give feedback.
All reactions