Home

Awesome

mathjax-pandoc-filter

Install via npm i mathjax-pandoc-filter

Example usage:

echo '$$a_i$$' | pandoc --filter ~/node_modules/.bin/mathjax-pandoc-filter

Or, if you have npm bin in PATH, just

echo '$$a_i$$' | pandoc --filter mathjax-pandoc-filter

Configuration

The filter will check Pandoc metadata for the following boolean options:

Example:

echo '$$a_i$$' | pandoc --filter mathjax-pandoc-filter -Mmathjax.centerDisplayMath -Mmathjax.noInlineSVG

You can also specify this options in Markdown document's YAML header:

---
mathjax.centerDisplayMath: true
mathjax.noInlineSVG: true
mathjax.typeset:
  cjkCharWidth: 15
---

$$a_i$$

Note: you can't set mathjax or mathjax.typeset from command line.