0.1.1 • Published 7 years ago
pandocfiltersjs v0.1.1
pandocfiltersjs
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());
}
});
0.1.1
7 years ago