mathjax-pandoc-filter
Pandoc filter to turn LaTeX math into embedded SVG
Last updated a year ago by lierdakil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mathjax-pandoc-filter 
SYNC missed versions from official npm registry.

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:

  • mathjax.centerDisplayMath

    Will add text-align: center style to display math paragraphs

  • mathjax.noInlineSVG

    Will render math as img tags instead of inline svg

  • mathjax

    Will be converted to JS object and passed to MathJax.config. Refer to MathJax-node documentation for details.

  • mathjax.typeset

    Will 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 math and svg at least.

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.

Current Tags

  • 0.4.0                                ...           latest (a year ago)

9 Versions

  • 0.4.0                                ...           a year ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0 [deprecated]           ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2 [deprecated]           ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |