Skip to content
No description or website provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
History.md
LICENSE
Makefile
Readme.md
index.html
index.js
package.json
test.js
test.md

Readme.md

markdown-middleware

middleware for serving markdown files as rendered HTML. It makes an effort to render a closely as possible to the style of github but stops short of actually using githubs API to keep performance snappy.

Installation

$ npm install markdown-middleware --save

then in your app:

var markdown = require('markdown-middleware')

Usage

just make sure you use it before static or similar middleware

app.use(markdown({
  // files will be looked for relative to
  // to this path
  directory: __dirname + '/public'
}))

Running the tests

$ make test
Something went wrong with that request. Please try again.