0.0.13 • Published 5 years ago

hexo-katex v0.0.13

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

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
$$
0.0.13

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago