Skip to content

A wrapper around `mathjax-node` to enable you to statically render math in HTML documents using Mathjax.

License

Notifications You must be signed in to change notification settings

stormalinblue/gulp-mathjaxify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2c4694b · Aug 8, 2019

History

23 Commits
Jun 3, 2019
Aug 8, 2019
Aug 8, 2019
Jun 2, 2019
Aug 8, 2019
Aug 8, 2019
Aug 8, 2019
Jun 1, 2019
Aug 8, 2019
Aug 8, 2019
Aug 8, 2019
Jun 2, 2019

Repository files navigation

gulp-mathjaxify

A simple gulp plugin to statically render your math expressions in larger documents using gulp. Specifically, a wrapper around mathjax-node-page.

Build Status

Installation

Install from the npm registry by entering the following command into the shell.

npm install gulp-mathjaxify

Usage

Import mathjaxify from gulp-mathjaxify and then call mathjaxify in a gulp pipe with the appropriate mathjax-node-page options.

// gulpfile.js

const { src, dest } = require("gulp");
const { mathjaxify } = require("gulp-mathjaxify");

// Use mathjax-node-page options
// Refer to https://www.npmjs.com/package/mathjax-node-page#usage

// Render equations as html
src("./src/*.html")
    .pipe(mathjaxify({ output: "html" }))
    .pipe(dest("./dist/"))

// Render equations as svg
// Interpret single-dollar expressions as inline expressions
src("./src/*.html")
    .pipe(mathjaxify({ output: "svg", singleDollars: true }))
    .pipe(dest("./dist/"))

About

A wrapper around `mathjax-node` to enable you to statically render math in HTML documents using Mathjax.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published