hexo 中显示 latex :

安装

  1. npm un hexo-renderer-marked # 先将原有的渲染器卸载 npm i hexo-renderer-pandoc# 安装pandoc

  2. 在主题配置文件_config.yml 中找到math关键词,将mathjax的false改为true。

  3. 本地安装pandoc 后重启

换行

1
2
3
4
\begin{align}
a_{11}& =b_{11}\\\\
a_{22}& =b_{22}+c_{22}
\end{align}

  • 开头结尾加入

    1
    \begin{align}  \end{align}