md-middleware

0.0.2 • Public • Published

md-middleware

  • You'll love using markdown again! *
app.use('/blog', markdown({
    extend: function (req, res, html) {
        res.render('inject', {markdown:html, view:"blog"})
    },
    directory: './static/blog'
}))

If no extend function is provided, it generates a responds with a basic html page with bootstrap, and a vs.css pygment stylesheet

Running the tests

$ make test

Package Sidebar

Install

npm i md-middleware

Weekly Downloads

3

Version

0.0.2

License

none

Last publish

Collaborators

  • zombiehippie