hexo-prism-plugin不支持大括号显示修复
发现问题
在编写博客时,发现hexo自带高亮代码插件不兼容某些js文件,于是将hexo自带的插件更换为hexo-prism-plugin。但是发现花括号无法正常显示,如图所示。
![](https://i-blog.csdnimg.cn/blog_migrate/dc60422a9998e31103028874e157a260.png)
解决问题
-
网上查阅资料未果,最终在插件模块源码里面发现花括号没有被写入,遂自行加入。
-
具体路径:Blog\node_modules\hexo-prism-plugin\src\index.js
-
如图所示:添加内容在红框之中。
![](https://i-blog.csdnimg.cn/blog_migrate/fed472d72cf2374c449bd9995186de54.png)
- 更新之后显示正常。
![](https://i-blog.csdnimg.cn/blog_migrate/a068c4c82e0bb52d61d16feda0ec60f8.png)
问题解决,特此记录。