markdown-stream
v1.0.1
Published
Tranform a stream of Markdown into HTML.
Downloads
29
Maintainers
Readme
markdown-stream
Tranform a stream of Markdown into HTML (via Remarkable).
Installation
npm install markdown-stream
Usage
var fs = require('fs')
var markdown = require('markdown-stream')
var input = fs.createReadStream('README.md')
var output = fs.createWriteStream('README.html')
input
.pipe(markdown('full', {
html: true
}))
.pipe(output)
Options
Refer to Remarkable for presets and options.
Note
The module requires the whole stream to be buffered, so use it carefully.