写博客时包含代码 以为不能输入代码
报错提示如下:
–Context Dump Ends
=====\u001b[39m’ } } ‘Something's wrong. Maybe you can find the solution here: %s’ ‘\u001b[4mhttps://hexo.io/docs/troubleshooting.html\u001b[24m'
因为我在文章里写了{ { } }
hexo 的文章渲染使用的是 Nunjucks ,因为在使用mathjax公式,造成了{ {重叠,而它会在生成文章时将那几个大括号识别成自己的语法,这样就会报错。
解决办法:
在括号之间添加空格 文本可识别
上一篇

2021-02-06
下一篇

2021-02-01