Skip to content
Use KaTeX to display math in Hexo sites.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.npmignore
LICENSE
README.md
index.js
package.json

README.md

hexo-katex

Use KaTeX to display math in Hexo sites.

Install

Install hexo-renderer-pandoc and config math engine.

pandoc:
  mathEngine: katex

Then install hexo-katex.

npm install hexo-katex --save

KaTeX css link will be automatically injected into post, if you want to add it manually, modify _config.yml.

katex:
  css: false

Writing

Inline math $E = m * c^2$

Display math

$$
E = m * c^2
$$
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.