今天用hexo渲染机器学习笔记时出现报错
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 31, Column 21]
expected variable end
立马上网去查,发现是hexo的一个bug,不能渲染{ {。
解决方案①(推荐)
可以直接转义{}分别转义成{ }
解决方法②
#123;% raw %#125;
含有双大括号的内容
#123;% endraw %#125;
另外,为了方便使用cdn,机器学习页面里的图片我都fork到自己的仓库里了,只需把
../images
替换成
https://cdn.jsdelivr.net/gh/fengdu78/Coursera-ML-AndrewNg-Notes/images
就可以了
11月16日更新:
在多次折腾下,我对mathjax失去了信心,决定直接在博客里放机器学习的html笔记,事情终于解决了😂
参考链接:https://zxx1996.github.io/2017/09/21/hexo遇到的异常/
https://www.jianshu.com/p/738ebe02029b