Qi Liu(刘奇)
Qi Liu(刘奇)
Apologies for the inconvenience. Due to the age of the project, please carefully check the code, you may also consider conducting simulations to verify the output.
这是因为` hexo-renderer-marked` 渲染存在特殊字符转义和mathjax冲突导致的,可以采用下面方式解决。 1. 在主题的`_config.yml`开启`mathjax` 2. 在你要渲染的文章开头添加`mathjax: true` 3. 在终端执行: ``` npm uninstall hexo-renderer-marked --save npm install hexo-renderer-kramed --save ``` 4. 在博客根目录下,找到node_modules/kramed/lib/rules/inline.js文件,在inline变量中做出如下修改(以下是修改好后的代码): ``` var inline = { // escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/,...