Replies: 1 comment 1 reply
-
Have you tried configuring the nuxt.config.ts for syntax highlight? content: {
highlight: {
preload: [
'c',
'cpp',
'<any language supported by Shiki>'
],
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to highlight some
.proto
files, but regardless of what I try, I haven't manage to do it.While they are supported by Shiki (https://github.com/shikijs/shiki/blob/main/docs/languages.md), I cannot use
proto
inhighlight.preload
. Doing some digging, I saw that Nuxt Content v2 uses shiki-es, and Protobuf is not in its set ofBUNDLED_LANGUAGES
. I came across a similar issue, which while it's resolved, it didn't help.Any ideas are welcomed :)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions