You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
If a codeblock has no language specified at all, Shiki simply does not highlight anything. An extra field in the nuxt config would be nice to set an default or fallback language if the specified language does not exist or is not present at all.
Describe the solution you'd like
Add a fallback/default language field to nuxt config.
Describe alternatives you've considered
I tried to rewrite the ProsePre.vue and set the language there but it seems that the Shiki highlighting process is done before getting passed as a prop.
The text was updated successfully, but these errors were encountered:
Thank you for creating an issue, However having a default language seems not a standard solution.
Markdown renderers treat missing languages as text language.
However, you can use content:file:beforeParse to replace ``` with ```some-language in your own project.
Is your feature request related to a problem? Please describe
If a codeblock has no language specified at all, Shiki simply does not highlight anything. An extra field in the nuxt config would be nice to set an default or fallback language if the specified language does not exist or is not present at all.
Describe the solution you'd like
Add a fallback/default language field to nuxt config.
Describe alternatives you've considered
I tried to rewrite the ProsePre.vue and set the language there but it seems that the Shiki highlighting process is done before getting passed as a prop.
The text was updated successfully, but these errors were encountered: