0.0.13 • Published 7 years ago
hexo-katex v0.0.13
hexo-katex
Use KaTeX to display math in Hexo sites.
Installing
Install hexo-renderer-pandoc and config math engine.
pandoc:
mathEngine: katexThen install hexo-katex.
npm install hexo-katex --saveKaTeX css link will be automatically injected into post, if you want to add it manually, modify _config.yml.
katex:
css: falseWhen KaTeX encounters an unsupported command, it will abort a rendering process. You can change the behavior by modifing _config.yml.
katex:
throw_on_error: falseYou can define macros like that:
katex:
macros:
\hash: \mathop\mathrm{hash}Writing
Inline math $E = m * c^2$
Display math
$$
E = m * c^2
$$