编译时发出警告 @vuepress/plugin-shiki: ⚠ Missing pem highlighter, skip highlighting
#4272
-
我的解决方案: 添加语言配置 import { hopeTheme } from "vuepress-theme-hope";
export default {
theme: hopeTheme({
plugins: {
shiki: {
themes: {
dark: 'dark-plus',
light: 'light-plus',
},
langs: [
'java',
'javascript',
'typescript',
'html',
'css',
'json',
'yaml',
'markdown',
'xml',
'bat',
'shell',
'powershell',
'sql',
'properties',
'md',
'vue',
'tsx',
'jsx',
'scss',
'less',
'sass',
'vue-html',
'nginx',
'text',
],
},
},
}),
}; |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Sep 20, 2024
Replies: 2 comments
-
你可能需要定制 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is expected because shiki does not have a highlighter for pem, either you set it to another known language for shiki, or you provide a pem highlighter for shiki. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is expected because shiki does not have a highlighter for pem, either you set it to another known language for shiki, or you provide a pem highlighter for shiki.