Skip to content
Server side MathJax renderer plugin for Hexo
JavaScript
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 Update Mar 20, 2019
LICENSE Initial commit Feb 7, 2019
README.md
index.js
package.json Update dependency hexo to v4 (#4) Oct 16, 2019
renovate.json Add renovate.json Mar 29, 2019
sample.png Update Mar 20, 2019

README.md

Hexo Filter MathJax

npm-image lic-image

Server side MathJax Renderer Plugin for Hexo. No front-end scripts are required.

Installation

size-image dm-image dt-image

$ npm install hexo-filter-mathjax

Options

You can configure this plugin in Hexo _config.yml. Default options:

mathjax:
  single_dollars: true
  cjk_char_width: 16
  svg: true

Usage

Set mathjax: true in Front-matter of each article (post / page) that you would like to enable mathjax. Example:

---
title: Title
categories: Physics
date: 1984-01-24 16:00:00
tags:
mathjax: true
---

Then you can use the LaTeX syntax in the article.

Sample

Write the following LaTeX code:

$$
\frac{\partial u}{\partial t} = h^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}\right)
$$

Then you will get:

sample

License

Released under the MIT License

You can’t perform that action at this time.