Open moshu023 opened 3 years ago
在编写博客时,发现hexo自带高亮代码插件不兼容某些js文件,于是将hexo自带的插件更换为hexo-prism-plugin。但是发现花括号无法正常显示,如图所示。
网上查阅资料未果,最终在插件模块源码里面发现花括号没有被写入,遂自行加入。
具体路径:Blog\node_modules\hexo-prism-plugin\src\index.js
Blog\node_modules\hexo-prism-plugin\src\index.js
如图所示:添加内容在红框之中。
不需要卸载hexo-prism-plugin插件将问题解决,特此反馈。
为啥我修改以后一样不显示?老哥
hexo-prism-plugin不支持大括号显示修复
发现问题
在编写博客时,发现hexo自带高亮代码插件不兼容某些js文件,于是将hexo自带的插件更换为hexo-prism-plugin。但是发现花括号无法正常显示,如图所示。
解决问题
网上查阅资料未果,最终在插件模块源码里面发现花括号没有被写入,遂自行加入。
具体路径:
Blog\node_modules\hexo-prism-plugin\src\index.js
如图所示:添加内容在红框之中。
不需要卸载hexo-prism-plugin插件将问题解决,特此反馈。