Jekyll

#web

使用数学公式

_layouts/default.html 文件中加上下面这一行:

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

如果国外的源访问比较慢,可以换成国内的 (bootcdn.cn),只替换地址,保留参数。

公式 效果
$$ f'(x_0) = \lim_{\Delta x \rightarrow 0} \frac{\Delta y}{\Delta x} $$

Github 更换 Markdown 引擎

注:2017.03

最近 push 后会收到 Github 的邮件,说是替换了 Markdown 引擎,把 rdiscount 换成了 kramdown

You are currently using the 'rdiscount' Markdown engine, which is no longer supported by GitHub Pages and may cease working at any time. To ensure your site continues to build, remove the 'markdown' setting in your site's '_config.yml' file and confirm your site renders as expected. For more information, see https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/.

_config.yml 中修改一下即可:

# markdown: rdiscount
markdown: kramdown