1.0.0 • Published 8 years ago

rufio-filter-markdown v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

rufio-filter-markdown

NPM Version NPM Downloads Build Status js-happiness-style

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