Closed huangjj27 closed 8 years ago
代码如下: $$ h{\theta}(x) = \theta ^ t \cdot x \ J(\theta) = \frac{1}{2}(y-h{\theta}(x))^2 $$
需要主题配置中开启 MathJax
# Display Math(LaTeX, MathML...) | 数学公式支持 mathjax: true
主题配置没有效果,最后在博客配置上增加了hexo-math插件解决。
注意:公式中的下划线会被markdown误认为是斜体格式而被转换掉,使用\_来跳过这种转换
\_
代码如下: $$ h{\theta}(x) = \theta ^ t \cdot x \ J(\theta) = \frac{1}{2}(y-h{\theta}(x))^2 $$