Skip to content

dotcs/hexo-katexify

 
 

Repository files navigation

hexo-katexify · build status

Hexo plugin for rendering TeX math by katex. This plugin is based on the work of haripo.

Installation

$ npm install hexo-katexify --save
$ npm test

or with yarn

$ yarn add hexo-katexify
$ yarn test

Import katex.min.css (in template)

<head>
  <!-- other code goes here -->

  <link href="/katexify/katex.min.css" rel="stylesheet" />
</head>

Usage

Inline syntax

$ y = x^2 + 3 $

or display mode syntax

$$
y = x^2 + 3
$$

Release

Steps to release a new version.

git flow release start 1.0.0

# Then to the following steps:
# - Update version number in package.json
# - See if publishing would work: yarn run prepublish
# - Make sure that all changes have been added, especially in the dist folder
# - Commit any changes

git flow release finish -p

git checkout master
npm publish

About

Hexo plugin for rendering TeX math by katex

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%