Closed cddysq closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
Failed to reproduce, you can try the latest version first.
重现失败,您可以先尝试最新版本。
我已经尝试next主分支最新代码,依然未高亮显示,不知道是什么情况导致该问题的出现,不知道您是否愿意帮忙排查该问题,万分感谢 !
源代码已全部同步至仓库:https://github.com/CodeHaotian/CodeHaotian.github.io
你需要执行npm i prismjs
安装
你需要执行
npm i prismjs
安装
我已经安装了该插件,奇怪的现象是只有shell
标注的代码块未能高亮显示,其他语言都能正常高亮,网页效果如下图:
https://github.com/CodeHaotian/CodeHaotian.github.io/blob/HexoNexT/package.json 未见安装
抱歉,按照你的提示安装后,未及时更新代码至仓库,现已更新,网页依然只有shell
标记代码块未高亮
老哥你类型写错了
PS:建议把package-lock.json
加到.gitignore
里
用bash是正常的
用bash是正常的
真的非常感谢老哥你的帮助!!!我以前都是用的shell
,没想到是bash
,修改语言类型后已经显示正常。
你需要执行
npm i prismjs
安装
un掉试试,好像Hexo5自带了
你需要执行
npm i prismjs
安装un掉试试,好像Hexo5自带了
已试验,卸载后一切正常,Hexo 5 不需要单独安装,自带了
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
对于
shell
语言应该与在线调试网站保持一致Actual behavior
shell
语言未能正常高亮Steps to reproduce the behavior
shell
代码块Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information