Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

hexo-katex

Use KaTeX to display math in Hexo sites.

Installing

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

When KaTeX encounters an unsupported command, it will abort a rendering process. You can change the behavior by modifing _config.yml.

katex:
  throw_on_error: false

You can define macros like that:

katex:
  macros:
    \hash: \mathop\mathrm{hash}

Writing

Inline math $E = m * c^2$

Display math

$$
E = m * c^2
$$

About

Use KaTeX to display math in Hexo sites.

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •