markdown-stream

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i markdown-stream

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • gummesson