Open yjhmelody opened 7 years ago
@yjhmelody Hello,公式渲染出错可能是Hexo渲染泄漏问题,可以看看官方的这个问题: Hexo泄露(Escape)内容 ,你试试吧
Hexo 使用 Nunjucks 来解析文章(旧版本使用 Swig,两者语法类似),内容若包含 {{ }} 或 {% %} 可能导致解析错误,您可以用 raw 标签包裹来避免潜在问题发生。
{% raw %}
Hello {{ sensitive }}
{% endraw %}
谢谢,基本解决了,还是想抱怨下写公式这样时间成本太高了(感觉以后得少写公式了),真希望hexo有更好的解决方案
确实挺繁琐的,写一个加减乘除就要好几个{% raw %},真不方便
RT,简单的公式可以渲染出来,但很多公式都无法渲染出来,比如\frac 分数, 请问有什么好的解决方法么?