mathjax-pandoc-filter v0.4.1
mathjax-pandoc-filter
Install via npm i mathjax-pandoc-filter
Example usage:
echo '$$a_i$$' | pandoc --filter ~/node_modules/.bin/mathjax-pandoc-filterOr, if you have npm bin in PATH, just
echo '$$a_i$$' | pandoc --filter mathjax-pandoc-filterConfiguration
The filter will check Pandoc metadata for the following boolean options:
mathjax.centerDisplayMathWill add
text-align: centerstyle to display math paragraphsmathjax.noInlineSVGWill render math as
imgtags instead of inlinesvgmathjaxWill be converted to JS object and passed to
MathJax.config. Refer to MathJax-node documentation for details.mathjax.typesetWill be unified with default typeset options and passed to each call of
MathJax.typeset. Refer to MathJax-node documentation for details.Values here will override the defaults.
Note: you can override any values, but you probably don't want to touch
mathandsvgat least.
Example:
echo '$$a_i$$' | pandoc --filter mathjax-pandoc-filter -Mmathjax.centerDisplayMath -Mmathjax.noInlineSVGYou 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.