Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 626 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 626 Bytes

more-markdown / mathjax-processor

A plugin for more-markdown that render LaTeX formulas using MathJax.

Installation

You first need a more-markdown setup. Then you can install it via:

npm install @more-markdown/mathjax-processor

Usage

var moreMarkdown = require('more-markdown');
var mathjaxProcessor = require('@more-markdown/mathjax-processor');

// create a processor that writes the final html
// to the element with the id 'output'
var proc = moreMarkdown.create('output', processors: [mathjaxProcessor]);

proc.render("$$ a^2 = b^2 + c^2 $$");