1.0.0 • Published 10 years ago
rufio-filter-markdown v1.0.0
rufio-filter-markdown
Install
$ npm install --save rufio-filter-markdownUsage
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());
	});1.0.0
10 years ago