1.0.1 • Published 9 years ago

markdown-stream v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

markdown-stream

NPM version License Build status

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.