md-middleware
v0.0.2
Published
Markdown middleware for connect/express using marked and pygmentize.
Downloads
5
Maintainers
Readme
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