rufio-filter-markdown
v1.0.0
Published
A rufio filter for markdown
Downloads
8
Maintainers
Readme
rufio-filter-markdown
Install
$ npm install --save rufio-filter-markdown
Usage
var fs = require('fs');
var markdownFilter = require('rufio-filter-makrdown')({
// Options defaults
remarkable: 'commonmark'
});
// Pipe file content to the filter
fs.createReadStream('./file.md')
.pipe(markdownFilter())
.on('data', function (c) {
// `c` is the rendered markdown as a buffer
console.log(c.toString());
});