https://github.com/matchachoco010/hexo-katex
Use KaTeX to display math in Hexo sites.
https://github.com/matchachoco010/hexo-katex
Last synced: about 1 year ago
JSON representation
Use KaTeX to display math in Hexo sites.
- Host: GitHub
- URL: https://github.com/matchachoco010/hexo-katex
- Owner: MatchaChoco010
- License: mit
- Created: 2017-01-07T17:15:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T04:42:12.000Z (about 8 years ago)
- Last Synced: 2025-02-13T02:26:35.586Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-katex
Use KaTeX to display math in Hexo sites.
## Install
Install [hexo-renderer-pandoc](https://github.com/wzpan/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
$$
```