npm.io
0.1.1 • Published 9 years ago

pandocfiltersjs

Licence
MIT
Version
0.1.1
Deps
0
Vulns
0
Weekly
0

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());
  }
});

Keywords