pandoc-filter-promisified
Pandoc filtering for Node.js -- Promisified
Last updated 2 years ago by lierdakil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pandoc-filter-promisified 
SYNC missed versions from official npm registry.

About

Node.js port of the Python pandocfilters for filtering with Pandoc

Install

npm install -g pandoc-filter-promisified

Example

#!/usr/bin/env node

// Pandoc filter to convert all text to uppercase

var pandoc = require('pandoc-filter-promisified');
var Str = pandoc.Str;

async function action(elt,format,meta) {
	if (elt.t === 'Str') return Str(elt.c.toUpperCase());
}

pandoc.stdio(action);

Compatibility Note

v0.1.6 is required for pandoc versions after 1.17.2 to support the new JSON format. See this issue for details.

Credits

Thanks to John MacFarlane for Pandoc.

Thanks to Mike Henderson for the original version of pandoc-filter for Node.

License

MIT

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

1 Versions

  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |