-
Notifications
You must be signed in to change notification settings - Fork 210
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
主题好好看! #29
Comments
Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin. |
参考我的。。。。反馈 |
昨天参考过你那个了。现在这个我也不知道有没有影响,说确保已加载Autoloader插件 |
不会影响的,如果担心出现影响的话,可以回退旧的版本 |
那就行,多谢大哥 |
大哥,低版本咋换,我想试试 |
1、卸载node_modules 或者 npm uninstall js-yaml(推荐第二种) |
那个搜索的插件我想换本地搜索的那个要怎么换 |
这是因为这个主题使用prismjs来实现代码美化,但是要想让prismjs自动识别出所需要美化的是哪一种语言就需要在用到一个Autoloader plugin来实现自动识别。这是prismjs的官方解决
# 如果你是用的是Linux OS, 你可以这样做
vim <hexo_blog root>/node_modules/prismjs/prism.js
# 然后将原有的内容删除,将点击DOWNLOAD JS按钮下载的网页,记得`:wq`
# 如果你是用的是windows,那你就直接把下载的prism.js文件,替换原来的文件就可以了 2.重新hexo g或者hexo s应该就不会报错了 |
如果博客采用了 hexo-renderer-multi-markdown-it 插件的话,似乎应该是替换 <hexo_blog root>/node_modules/hexo-renderer-multi-markdown-it\node_modules\prismjs 路径下的 prism.js 文件 |
主题好好看!就是文档不太全,有些bug不会搞😧
The text was updated successfully, but these errors were encountered: