markdown-it-simplemath
This is a markdown-it plugin that adds simple math support. It is up to the caller to supply a rendering function.
NOTE: For fully featured math rendering, you should use runarberg/markdown-it-math. This plugin was created for a particular need to render to images. It really just passes off whatever is inside $...$
to an external renderer.
Originally developed for use with Markdown Here.
Installation
$ npm install markdown-it-simplemath
Usage
var md = ;var { return '<img src="https://chart.googleapis.com/chart?cht=tx&chl={urlmathcode}" alt="{mathcode}">' ;};md;console;