1.0.1 • Published 6 years ago

koa-static-markdown v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

koa-static-markdown

NPM version

An static resource server in koa, which transform markdown file to html. It let you get html file directly when you visit the markdown file in the static directory you specified in config.

Installation

requires node v7.6.0

$ npm install koa-static-markdown

Example

const Koa = require('koa');
const app = new Koa();
const server = require('koa-static-markdown')

app.use( server({path:'/doc',
    root:'./static',
    css:"http://example.com/markdown.css"}) );

app.listen(3000);

License

MIT