-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
Support more code type #1265
Comments
This issue comes from Shiki itself. check upstream issue shikijs/shiki#257 Meanwhile, you can use |
just add Maybe it needs more setting |
When you use defineNuxtConfig({
content: {
highlight: {
preload: ['diff', 'ts', 'js', 'css', ...]
}
}
}) |
I just create a PR(#1278) to prevent this bad behavior, in next release you will not need to add |
Is your feature request related to a problem? Please describe
When I write code block which type rarely seen in markdown file, like
diff
, the console throw an error in dev modeDescribe the solution you'd like
It seems this error throw from shiki, how to config it to ignore the rarely code type instead of throw an error
Describe alternatives you've considered
Additional context
the markdown wrting code block as fellow, its type is
diff
, github and VS Code built-in markdown editor preview mode can render this typebut the Nuxt console throw an request error and then a
500 Internal Server Error
and the page cannot render correct
The text was updated successfully, but these errors were encountered: