0.1.1 • Published 7 years ago

pandocfiltersjs v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

pandocfiltersjs

CircleCI npm version

node module for writing pandoc filters, mostly porting from pandocfilters (Python implementation.)

Usage

Here is an exmample to upper-case strings.

#!/usr/bin/env node

const { toJSONFilter, Str } = require("./main");

toJSONFilter((type, value, format, meta) => {
  if (type === "Str") {
    return Str(value.toUpperCase());
  }
});